diff options
author | Ms2ger <Ms2ger@gmail.com> | 2016-06-15 00:16:49 +0100 |
---|---|---|
committer | Ms2ger <Ms2ger@gmail.com> | 2016-06-20 19:02:39 +0200 |
commit | bea96f60e322dae5262c4024a0b3d65f469b2979 (patch) | |
tree | ac3e4d834647e6278c3b04d621b162f13cdb86ab /components/layout/wrapper.rs | |
parent | 6aaf3e6a0153725c2c458b791cc18c72c1e46115 (diff) | |
download | servo-bea96f60e322dae5262c4024a0b3d65f469b2979.tar.gz servo-bea96f60e322dae5262c4024a0b3d65f469b2979.zip |
Introduce PartialStyleAndLayoutData.
Diffstat (limited to 'components/layout/wrapper.rs')
-rw-r--r-- | components/layout/wrapper.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/layout/wrapper.rs b/components/layout/wrapper.rs index 82c3d1416d5..88c001ca4d6 100644 --- a/components/layout/wrapper.rs +++ b/components/layout/wrapper.rs @@ -44,8 +44,8 @@ use script::layout_interface::{HTMLCanvasData, HTMLElementTypeId, LayoutCharacte use script::layout_interface::{LayoutDocumentHelpers, LayoutElementHelpers, LayoutJS}; use script::layout_interface::{LayoutNodeHelpers, Node, NodeTypeId}; use script::layout_interface::{RawLayoutElementHelpers, Text, TrustedNodeAddress}; -use script_layout_interface::OpaqueStyleAndLayoutData; use script_layout_interface::restyle_damage::RestyleDamage; +use script_layout_interface::{OpaqueStyleAndLayoutData, PartialStyleAndLayoutData}; use selectors::matching::{DeclarationBlock, ElementFlags}; use selectors::parser::{AttrSelector, NamespaceConstraint}; use smallvec::VecLike; @@ -127,7 +127,7 @@ impl<'ln> ServoLayoutNode<'ln> { let ptr: NonOpaqueStyleAndLayoutData = Box::into_raw(box RefCell::new(PrivateLayoutData::new())); let opaque = OpaqueStyleAndLayoutData { - ptr: unsafe { NonZero::new(ptr as *mut ()) } + ptr: unsafe { NonZero::new(ptr as *mut RefCell<PartialStyleAndLayoutData>) } }; unsafe { self.node.init_style_and_layout_data(opaque); |