diff options
author | Josh Matthews <josh@joshmatthews.net> | 2019-03-27 14:18:18 -0400 |
---|---|---|
committer | Josh Matthews <josh@joshmatthews.net> | 2019-05-02 09:30:03 -0400 |
commit | 57d2b5a92df4348ba6131691fc41b05148bf5904 (patch) | |
tree | 399fb51194139569cd68b96fe6229a42c2731e42 /components/script/dom/paintworkletglobalscope.rs | |
parent | 0a5aab6cc2d23b6b9bf5de142e7a8a5b84e32380 (diff) | |
download | servo-57d2b5a92df4348ba6131691fc41b05148bf5904.tar.gz servo-57d2b5a92df4348ba6131691fc41b05148bf5904.zip |
Remove mozjs dep from malloc_size_of.
Diffstat (limited to 'components/script/dom/paintworkletglobalscope.rs')
-rw-r--r-- | components/script/dom/paintworkletglobalscope.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/components/script/dom/paintworkletglobalscope.rs b/components/script/dom/paintworkletglobalscope.rs index fe119eefbf3..89b9907c95c 100644 --- a/components/script/dom/paintworkletglobalscope.rs +++ b/components/script/dom/paintworkletglobalscope.rs @@ -76,6 +76,7 @@ pub struct PaintWorkletGlobalScope { /// <https://drafts.css-houdini.org/css-paint-api/#paint-definitions> paint_definitions: DomRefCell<HashMap<Atom, Box<PaintDefinition>>>, /// <https://drafts.css-houdini.org/css-paint-api/#paint-class-instances> + #[ignore_malloc_size_of = "mozjs"] paint_class_instances: DomRefCell<HashMap<Atom, Box<Heap<JSVal>>>>, /// The most recent name the worklet was called with cached_name: DomRefCell<Atom>, @@ -473,7 +474,9 @@ pub enum PaintWorkletTask { #[derive(JSTraceable, MallocSizeOf)] #[must_root] struct PaintDefinition { + #[ignore_malloc_size_of = "mozjs"] class_constructor: Heap<JSVal>, + #[ignore_malloc_size_of = "mozjs"] paint_function: Heap<JSVal>, constructor_valid_flag: Cell<bool>, context_alpha_flag: bool, |