mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
style: Add TNode::children_and_traversal_children_might_differ.
This will be used to optimize out traversing the real DOM children when propagating restyle hints.
This commit is contained in:
parent
c533097e20
commit
719709f0d5
3 changed files with 15 additions and 0 deletions
|
@ -185,6 +185,12 @@ impl<'ln> TNode for ServoLayoutNode<'ln> {
|
|||
self.children()
|
||||
}
|
||||
|
||||
fn children_and_traversal_children_might_differ(&self) -> bool {
|
||||
// Servo doesn't have to worry about nodes being rearranged in the
|
||||
// flattened tree like Gecko does (for XBL and Shadow DOM). Yet.
|
||||
false
|
||||
}
|
||||
|
||||
fn opaque(&self) -> OpaqueNode {
|
||||
unsafe { self.get_jsmanaged().opaque() }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue