diff options
author | Anthony Ramine <nox@nox.paris> | 2020-04-04 14:39:53 +0200 |
---|---|---|
committer | Anthony Ramine <nox@nox.paris> | 2020-04-04 15:00:04 +0200 |
commit | 8a0775fc8906a796668d68f85543ff9613eac7fd (patch) | |
tree | d4cba76dd0c0545a98ff37085875ecf52dcd60db /components/layout_thread/lib.rs | |
parent | 9972aee81f0e80d34157325a5e13b3b1a7ef417a (diff) | |
download | servo-8a0775fc8906a796668d68f85543ff9613eac7fd.tar.gz servo-8a0775fc8906a796668d68f85543ff9613eac7fd.zip |
Kill ServoLayoutElement::note_dirty_descendant
There is no need to set the dirty descendants flag unsafely from the layout side
for elements with pending restyles, we can do that on the DOM side when draining
the restyles from the Document.
Diffstat (limited to 'components/layout_thread/lib.rs')
-rw-r--r-- | components/layout_thread/lib.rs | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/components/layout_thread/lib.rs b/components/layout_thread/lib.rs index 54f1ec8d656..4cd7dad813e 100644 --- a/components/layout_thread/lib.rs +++ b/components/layout_thread/lib.rs @@ -87,7 +87,6 @@ use script_traits::{ConstellationControlMsg, LayoutControlMsg, LayoutMsg as Cons use script_traits::{DrawAPaintImageResult, IFrameSizeMsg, PaintWorkletError, WindowSizeType}; use script_traits::{Painter, WebrenderIpcSender}; use script_traits::{ScrollState, UntrustedNodeAddress, WindowSizeData}; -use selectors::Element; use servo_arc::Arc as ServoArc; use servo_atoms::Atom; use servo_config::opts; @@ -1463,13 +1462,6 @@ impl LayoutThread { for (el, restyle) in restyles { let el = unsafe { ServoLayoutNode::new(&el).as_element().unwrap() }; - // Propagate the descendant bit up the ancestors. Do this before - // the restyle calculation so that we can also do it for new - // unstyled nodes, which the descendants bit helps us find. - if let Some(parent) = el.parent_element() { - unsafe { parent.note_dirty_descendant() }; - } - // If we haven't styled this node yet, we don't need to track a // restyle. let style_data = match el.get_data() { |