diff options
author | bors-servo <servo-ops@mozilla.com> | 2020-04-04 09:51:19 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-04 09:51:19 -0400 |
commit | 57fe27a4ef725a798c8fedaed9a3e0798f14b3fb (patch) | |
tree | c2d15176fdaff75be4e84beba28a25b562357612 /components/layout_thread/dom_wrapper.rs | |
parent | d64f7d427a8dc56bbfc92183f57588e7eb1d56c2 (diff) | |
parent | 8a0775fc8906a796668d68f85543ff9613eac7fd (diff) | |
download | servo-57fe27a4ef725a798c8fedaed9a3e0798f14b3fb.tar.gz servo-57fe27a4ef725a798c8fedaed9a3e0798f14b3fb.zip |
Auto merge of #26110 - servo:layout-2020-rm-note-dirty-descendant, r=emilio
Kill ServoLayoutElement::note_dirty_descendant
Diffstat (limited to 'components/layout_thread/dom_wrapper.rs')
-rw-r--r-- | components/layout_thread/dom_wrapper.rs | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/components/layout_thread/dom_wrapper.rs b/components/layout_thread/dom_wrapper.rs index cbd0df1f9a4..404200e9ae0 100644 --- a/components/layout_thread/dom_wrapper.rs +++ b/components/layout_thread/dom_wrapper.rs @@ -712,21 +712,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>> { |