diff options
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 |