aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout_thread_2020/dom_wrapper.rs
diff options
context:
space:
mode:
authorAnthony Ramine <nox@nox.paris>2020-04-04 14:39:53 +0200
committerAnthony Ramine <nox@nox.paris>2020-04-04 15:00:04 +0200
commit8a0775fc8906a796668d68f85543ff9613eac7fd (patch)
treed4cba76dd0c0545a98ff37085875ecf52dcd60db /components/layout_thread_2020/dom_wrapper.rs
parent9972aee81f0e80d34157325a5e13b3b1a7ef417a (diff)
downloadservo-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_2020/dom_wrapper.rs')
-rw-r--r--components/layout_thread_2020/dom_wrapper.rs15
1 files changed, 0 insertions, 15 deletions
diff --git a/components/layout_thread_2020/dom_wrapper.rs b/components/layout_thread_2020/dom_wrapper.rs
index 5a722cd82b8..f3199dffc80 100644
--- a/components/layout_thread_2020/dom_wrapper.rs
+++ b/components/layout_thread_2020/dom_wrapper.rs
@@ -719,21 +719,6 @@ impl<'le> ServoLayoutElement<'le> {
pub unsafe fn set_has_snapshot(&self) {
self.as_node().node.set_flag(NodeFlags::HAS_SNAPSHOT, true);
}
-
- pub unsafe fn note_dirty_descendant(&self) {
- use selectors::Element;
-
- let mut current = Some(*self);
- while let Some(el) = current {
- // FIXME(bholley): Ideally we'd have the invariant that any element
- // with has_dirty_descendants also has the bit set on all its
- // ancestors. However, there are currently some corner-cases where
- // we get that wrong. I have in-flight patches to fix all this
- // stuff up, so we just always propagate this bit for now.
- el.set_dirty_descendants();
- current = el.parent_element();
- }
- }
}
fn as_element<'dom>(node: LayoutDom<'dom, Node>) -> Option<ServoLayoutElement<'dom>> {