diff options
Diffstat (limited to 'components/script_layout_interface/wrapper_traits.rs')
-rw-r--r-- | components/script_layout_interface/wrapper_traits.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/components/script_layout_interface/wrapper_traits.rs b/components/script_layout_interface/wrapper_traits.rs index 470685979b7..04372274cfc 100644 --- a/components/script_layout_interface/wrapper_traits.rs +++ b/components/script_layout_interface/wrapper_traits.rs @@ -73,7 +73,6 @@ impl<T> PseudoElementType<T> { /// Trait to abstract access to layout data across various data structures. pub trait GetLayoutData { fn get_style_and_layout_data(&self) -> Option<OpaqueStyleAndLayoutData>; - fn init_style_and_layout_data(&self, data: OpaqueStyleAndLayoutData); } /// A wrapper so that layout can access only the methods that it should have access to. Layout must @@ -85,6 +84,9 @@ pub trait LayoutNode: GetLayoutData + TNode { /// Returns the type ID of this node. fn type_id(&self) -> LayoutNodeType; + unsafe fn init_style_and_layout_data(&self, data: OpaqueStyleAndLayoutData); + unsafe fn take_style_and_layout_data(&self) -> OpaqueStyleAndLayoutData; + fn has_changed(&self) -> bool; unsafe fn clear_dirty_bits(&self); @@ -274,7 +276,6 @@ pub trait DangerousThreadSafeLayoutNode: ThreadSafeLayoutNode { } pub trait LayoutElement: Clone + Copy + Sized + Debug + GetLayoutData + TElement { - fn get_style_data(&self) -> Option<&AtomicRefCell<ElementData>>; } pub trait ThreadSafeLayoutElement: Clone + Copy + Sized + Debug + |