aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/layout_wrapper.rs
diff options
context:
space:
mode:
authorBobby Holley <bobbyholley@gmail.com>2016-10-28 15:37:22 -0700
committerBobby Holley <bobbyholley@gmail.com>2016-11-01 11:03:04 -0700
commitfb70ee2c0c907fc079350baa116f7315cf8869e3 (patch)
treecf8a9fc2a34de25c56084c3dbd399c244c5778c8 /components/script/layout_wrapper.rs
parent1a5e2b4673c559de289e78f4a5357d4e44b0dfa2 (diff)
downloadservo-fb70ee2c0c907fc079350baa116f7315cf8869e3.tar.gz
servo-fb70ee2c0c907fc079350baa116f7315cf8869e3.zip
Drop style data from descendants on display:none.
MozReview-Commit-ID: 8ls43oAGWRg
Diffstat (limited to 'components/script/layout_wrapper.rs')
-rw-r--r--components/script/layout_wrapper.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/components/script/layout_wrapper.rs b/components/script/layout_wrapper.rs
index 2120f4ae5cc..ace0e7f40f7 100644
--- a/components/script/layout_wrapper.rs
+++ b/components/script/layout_wrapper.rs
@@ -256,6 +256,10 @@ impl<'ln> LayoutNode for ServoLayoutNode<'ln> {
self.get_jsmanaged().init_style_and_layout_data(data);
}
+ unsafe fn take_style_and_layout_data(&self) -> OpaqueStyleAndLayoutData {
+ self.get_jsmanaged().take_style_and_layout_data()
+ }
+
fn has_changed(&self) -> bool {
unsafe { self.node.get_flag(HAS_CHANGED) }
}