mirror of
https://github.com/servo/servo
synced 2026-04-25 17:15:48 +02:00
@@ -710,14 +710,16 @@ impl Document {
|
|||||||
self.root_removal_noted.set(false);
|
self.root_removal_noted.set(false);
|
||||||
|
|
||||||
if let Some(dirty_root) = self.dirty_root.get() {
|
if let Some(dirty_root) = self.dirty_root.get() {
|
||||||
// There was an existing dirty root so we mark its
|
if dirty_root.is_connected() {
|
||||||
// ancestors as dirty until the document element.
|
// There was an existing dirty root so we mark its
|
||||||
for ancestor in dirty_root
|
// ancestors as dirty until the document element.
|
||||||
.upcast::<Node>()
|
for ancestor in dirty_root
|
||||||
.inclusive_ancestors_in_flat_tree()
|
.upcast::<Node>()
|
||||||
{
|
.inclusive_ancestors_in_flat_tree()
|
||||||
if ancestor.is::<Element>() {
|
{
|
||||||
ancestor.set_flag(NodeFlags::HAS_DIRTY_DESCENDANTS, true);
|
if ancestor.is::<Element>() {
|
||||||
|
ancestor.set_flag(NodeFlags::HAS_DIRTY_DESCENDANTS, true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user