aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/css/node_style.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/layout/css/node_style.rs')
-rw-r--r--components/layout/css/node_style.rs7
1 files changed, 0 insertions, 7 deletions
diff --git a/components/layout/css/node_style.rs b/components/layout/css/node_style.rs
index 1a5c1a74933..72afd0c6193 100644
--- a/components/layout/css/node_style.rs
+++ b/components/layout/css/node_style.rs
@@ -18,8 +18,6 @@ pub trait StyledNode {
/// Returns the style results for the given node. If CSS selector matching has not yet been
/// performed, fails.
fn style<'a>(&'a self) -> Ref<'a, Arc<ComputedValues>>;
- /// Does this node have a computed style yet?
- fn has_style(&self) -> bool;
/// Removes the style from this node.
fn unstyle(self);
}
@@ -42,11 +40,6 @@ impl<'ln> StyledNode for ThreadSafeLayoutNode<'ln> {
})
}
- fn has_style(&self) -> bool {
- let layout_data_ref = self.borrow_layout_data();
- layout_data_ref.as_ref().unwrap().shared_data.style.is_some()
- }
-
fn unstyle(self) {
let mut layout_data_ref = self.mutate_layout_data();
let layout_data = layout_data_ref.as_mut().expect("no layout data");