mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Remove HAS_DIRTY_SIBLINGS.
This isn't doing anything right now, and we're not even setting it properly in dirty_impl the |dirty_subtree(self)| was causing us to hit the skip case for step 3.
This commit is contained in:
parent
2de5407cda
commit
228eff7272
4 changed files with 6 additions and 39 deletions
|
@ -1491,7 +1491,6 @@ impl LayoutTask {
|
|||
// "changed":
|
||||
// > node.set_changed(true);
|
||||
node.set_dirty(true);
|
||||
node.set_dirty_siblings(true);
|
||||
node.set_dirty_descendants(true);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -269,7 +269,6 @@ impl<'a> PostorderDomTraversal for ConstructFlows<'a> {
|
|||
unsafe {
|
||||
node.set_changed(false);
|
||||
node.set_dirty(false);
|
||||
node.set_dirty_siblings(false);
|
||||
node.set_dirty_descendants(false);
|
||||
}
|
||||
|
||||
|
|
|
@ -52,7 +52,7 @@ use script::dom::htmliframeelement::HTMLIFrameElement;
|
|||
use script::dom::htmlimageelement::LayoutHTMLImageElementHelpers;
|
||||
use script::dom::htmlinputelement::{HTMLInputElement, LayoutHTMLInputElementHelpers};
|
||||
use script::dom::htmltextareaelement::{HTMLTextAreaElement, LayoutHTMLTextAreaElementHelpers};
|
||||
use script::dom::node::{HAS_CHANGED, HAS_DIRTY_DESCENDANTS, HAS_DIRTY_SIBLINGS, IS_DIRTY};
|
||||
use script::dom::node::{HAS_CHANGED, HAS_DIRTY_DESCENDANTS, IS_DIRTY};
|
||||
use script::dom::node::{LayoutNodeHelpers, Node, SharedLayoutData};
|
||||
use script::dom::text::Text;
|
||||
use selectors::matching::DeclarationBlock;
|
||||
|
@ -258,10 +258,6 @@ impl<'ln> LayoutNode<'ln> {
|
|||
self.node.set_flag(IS_DIRTY, value)
|
||||
}
|
||||
|
||||
pub unsafe fn set_dirty_siblings(&self, value: bool) {
|
||||
self.node.set_flag(HAS_DIRTY_SIBLINGS, value);
|
||||
}
|
||||
|
||||
pub fn has_dirty_descendants(&self) -> bool {
|
||||
unsafe { self.node.get_flag(HAS_DIRTY_DESCENDANTS) }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue