mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
style: Introduce StyleBloom
The idea is this will fix the bad behavior of the bloom filter in parallel traversal.
This commit is contained in:
parent
7d69f53794
commit
84a50ed5cb
7 changed files with 318 additions and 172 deletions
|
@ -175,14 +175,6 @@ impl<'ln> TNode for ServoLayoutNode<'ln> {
|
|||
unsafe { self.get_jsmanaged().opaque() }
|
||||
}
|
||||
|
||||
fn layout_parent_element(self, reflow_root: OpaqueNode) -> Option<ServoLayoutElement<'ln>> {
|
||||
if self.opaque() == reflow_root {
|
||||
None
|
||||
} else {
|
||||
self.parent_node().and_then(|x| x.as_element())
|
||||
}
|
||||
}
|
||||
|
||||
fn debug_id(self) -> usize {
|
||||
self.opaque().0
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue