diff options
Diffstat (limited to 'components/script/dom')
-rw-r--r-- | components/script/dom/bindings/iterable.rs | 4 | ||||
-rw-r--r-- | components/script/dom/eventtarget.rs | 3 | ||||
-rw-r--r-- | components/script/dom/range.rs | 4 |
3 files changed, 3 insertions, 8 deletions
diff --git a/components/script/dom/bindings/iterable.rs b/components/script/dom/bindings/iterable.rs index 35e83880b4f..15ff439e1eb 100644 --- a/components/script/dom/bindings/iterable.rs +++ b/components/script/dom/bindings/iterable.rs @@ -48,10 +48,8 @@ pub trait Iterable { /// An iterator over the iterable entries of a given DOM interface. //FIXME: #12811 prevents dom_struct with type parameters //#[dom_struct] +#[derive(DenyPublicFields, HeapSizeOf, JSTraceable)] #[must_root] -#[privatize] -#[derive(JSTraceable)] -#[derive(HeapSizeOf)] pub struct IterableIterator<T: DomObject + JSTraceable + Iterable> { reflector: Reflector, iterable: JS<T>, diff --git a/components/script/dom/eventtarget.rs b/components/script/dom/eventtarget.rs index 1e1a52830a6..57eedd8e333 100644 --- a/components/script/dom/eventtarget.rs +++ b/components/script/dom/eventtarget.rs @@ -220,8 +220,7 @@ impl CompiledEventListener { } } -#[derive(JSTraceable, Clone, PartialEq, HeapSizeOf)] -#[privatize] +#[derive(Clone, DenyPublicFields, HeapSizeOf, JSTraceable, PartialEq)] /// A listener in a collection of event listeners. struct EventListenerEntry { phase: ListenerPhase, diff --git a/components/script/dom/range.rs b/components/script/dom/range.rs index e9e3a484d41..65b4d1b8487 100644 --- a/components/script/dom/range.rs +++ b/components/script/dom/range.rs @@ -929,10 +929,8 @@ impl RangeMethods for Range { } } -#[derive(JSTraceable)] +#[derive(DenyPublicFields, HeapSizeOf, JSTraceable)] #[must_root] -#[privatize] -#[derive(HeapSizeOf)] pub struct BoundaryPoint { node: MutJS<Node>, offset: Cell<u32>, |