mirror of
https://github.com/servo/servo.git
synced 2025-07-25 08:10:21 +01:00
Change #[privatize] into #[derive(DenyPublicFields)]
This commit is contained in:
parent
19c645ff68
commit
8bcf36b9a5
16 changed files with 69 additions and 65 deletions
|
@ -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>,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue