aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--components/script/dom/node.rs11
1 files changed, 3 insertions, 8 deletions
diff --git a/components/script/dom/node.rs b/components/script/dom/node.rs
index 5b2e3191ce6..57b2ca2a6fb 100644
--- a/components/script/dom/node.rs
+++ b/components/script/dom/node.rs
@@ -949,15 +949,15 @@ pub trait RawLayoutNodeHelpers {
impl RawLayoutNodeHelpers for Node {
#[inline]
unsafe fn get_hover_state_for_layout(&self) -> bool {
- (*self.unsafe_get_flags()).contains(InHoverState)
+ self.flags.get().contains(InHoverState)
}
#[inline]
unsafe fn get_disabled_state_for_layout(&self) -> bool {
- (*self.unsafe_get_flags()).contains(InDisabledState)
+ self.flags.get().contains(InDisabledState)
}
#[inline]
unsafe fn get_enabled_state_for_layout(&self) -> bool {
- (*self.unsafe_get_flags()).contains(InEnabledState)
+ self.flags.get().contains(InEnabledState)
}
#[inline]
fn type_id_for_layout(&self) -> NodeTypeId {
@@ -1612,11 +1612,6 @@ impl Node {
}
}
- #[inline]
- pub unsafe fn unsafe_get_flags(&self) -> *const NodeFlags {
- mem::transmute(&self.flags)
- }
-
pub fn collect_text_contents<'a, T: Iterator<JSRef<'a, Node>>>(mut iterator: T) -> String {
let mut content = String::new();
for node in iterator {