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

@ -125,8 +125,12 @@ fn bottom_up_dom<N, C>(root: OpaqueNode,
// Perform the appropriate operation.
context.process_postorder(node);
let parent = match node.layout_parent_element(root) {
None => break,
if node.opaque() == root {
break;
}
let parent = match node.parent_element() {
None => unreachable!("How can this happen after the break above?"),
Some(parent) => parent,
};