diff options
Diffstat (limited to 'components/layout/util.rs')
-rw-r--r-- | components/layout/util.rs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/components/layout/util.rs b/components/layout/util.rs index 0ba105f20fa..206590d7c23 100644 --- a/components/layout/util.rs +++ b/components/layout/util.rs @@ -64,7 +64,6 @@ impl PrivateLayoutData { } bitflags! { - #[deriving(Copy)] flags LayoutDataFlags: u8 { #[doc="Whether a flow has been newly constructed."] const HAS_NEWLY_CONSTRUCTED_FLOW = 0x01 @@ -77,6 +76,14 @@ pub struct LayoutDataWrapper { pub data: Box<PrivateLayoutData>, } +#[allow(dead_code)] +fn static_assertion(x: Option<LayoutDataWrapper>) { + unsafe { + let _: Option<::script::dom::node::LayoutData> = + ::std::intrinsics::transmute(x); + } +} + /// A trait that allows access to the layout data of a DOM node. pub trait LayoutDataAccess { /// Borrows the layout data without checks. |