style: Introduce StyleBloom

The idea is this will fix the bad behavior of the bloom filter in parallel
traversal.
This commit is contained in:
Emilio Cobos Álvarez 2016-11-23 23:37:27 +01:00 committed by Emilio Cobos Álvarez
parent 7d69f53794
commit 84a50ed5cb
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
7 changed files with 318 additions and 172 deletions

View file

@ -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
}