aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout
diff options
context:
space:
mode:
authorBobby Holley <bobbyholley@gmail.com>2017-01-05 13:12:53 -0800
committerBobby Holley <bobbyholley@gmail.com>2017-01-09 11:51:37 -0800
commit3fcfc9c5fcce9bb97a217f08431efee815b85be2 (patch)
treec0e730bb72b03af6f235322bb54f39cd915e6953 /components/layout
parent4558efbca5c1ad3fe0b6b074415174c42ae1f75f (diff)
downloadservo-3fcfc9c5fcce9bb97a217f08431efee815b85be2.tar.gz
servo-3fcfc9c5fcce9bb97a217f08431efee815b85be2.zip
Bug 1325734 - Simplify ElementData and eliminate the concept of consuming styles. r=emilio
Diffstat (limited to 'components/layout')
-rw-r--r--components/layout/traversal.rs1
-rw-r--r--components/layout/wrapper.rs2
2 files changed, 1 insertions, 2 deletions
diff --git a/components/layout/traversal.rs b/components/layout/traversal.rs
index d5f85f767b9..0f7b1a3d89d 100644
--- a/components/layout/traversal.rs
+++ b/components/layout/traversal.rs
@@ -140,7 +140,6 @@ fn construct_flows_at<'a, N>(context: &LayoutContext<'a>,
}
if let Some(el) = node.as_element() {
- el.mutate_data().unwrap().persist();
unsafe { el.unset_dirty_descendants(); }
}
}
diff --git a/components/layout/wrapper.rs b/components/layout/wrapper.rs
index 817ff96bdb4..eb110a90e7a 100644
--- a/components/layout/wrapper.rs
+++ b/components/layout/wrapper.rs
@@ -172,7 +172,7 @@ impl<T: ThreadSafeLayoutNode> ThreadSafeLayoutNodeHelpers for T {
}
let data = node.borrow_layout_data().unwrap();
- if let Some(r) = data.base.style_data.as_restyle() {
+ if let Some(r) = data.base.style_data.get_restyle() {
// We're reflowing a node that just got a restyle, and so the
// damage has been computed and stored in the RestyleData.
r.damage