aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/css/node_util.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/layout/css/node_util.rs')
-rw-r--r--components/layout/css/node_util.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/layout/css/node_util.rs b/components/layout/css/node_util.rs
index 150995428ea..dcf1019440e 100644
--- a/components/layout/css/node_util.rs
+++ b/components/layout/css/node_util.rs
@@ -57,7 +57,7 @@ impl<'ln> NodeUtil for ThreadSafeLayoutNode<'ln> {
/// Does this node have a computed style yet?
fn have_css_select_results(&self) -> bool {
let layout_data_ref = self.borrow_layout_data();
- layout_data_ref.get_ref().shared_data.style.is_some()
+ layout_data_ref.as_ref().unwrap().shared_data.style.is_some()
}
/// Get the description of how to account for recent style changes.
@@ -73,7 +73,7 @@ impl<'ln> NodeUtil for ThreadSafeLayoutNode<'ln> {
let layout_data_ref = self.borrow_layout_data();
layout_data_ref
- .get_ref()
+ .as_ref().unwrap()
.data
.restyle_damage
.unwrap_or(default)