aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/css/node_util.rs
diff options
context:
space:
mode:
authorKeegan McAllister <kmcallister@mozilla.com>2014-09-18 16:29:46 -0700
committerKeegan McAllister <kmcallister@mozilla.com>2014-09-20 13:00:55 -0700
commitdc86e8365495acc87b983a290bb7277a37a5247f (patch)
tree36af9677f6a24d7163e4b41c2b8e53da4d15538c /components/layout/css/node_util.rs
parent2f46b9aedefae7938102f7a1ccc6c96044cf1bdb (diff)
downloadservo-dc86e8365495acc87b983a290bb7277a37a5247f.tar.gz
servo-dc86e8365495acc87b983a290bb7277a37a5247f.zip
Eliminate warnings
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)