mirror of
https://github.com/servo/servo.git
synced 2025-08-11 08:25:32 +01:00
Remove mozjs dep from malloc_size_of.
This commit is contained in:
parent
0a5aab6cc2
commit
57d2b5a92d
21 changed files with 30 additions and 16 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue