diff options
author | Bobby Holley <bobbyholley@gmail.com> | 2017-01-05 13:12:53 -0800 |
---|---|---|
committer | Bobby Holley <bobbyholley@gmail.com> | 2017-01-09 11:51:37 -0800 |
commit | 3fcfc9c5fcce9bb97a217f08431efee815b85be2 (patch) | |
tree | c0e730bb72b03af6f235322bb54f39cd915e6953 /components/layout | |
parent | 4558efbca5c1ad3fe0b6b074415174c42ae1f75f (diff) | |
download | servo-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.rs | 1 | ||||
-rw-r--r-- | components/layout/wrapper.rs | 2 |
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 |