mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +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
|
@ -122,12 +122,8 @@ pub trait TNode : Sized + Copy + Clone + NodeInfo {
|
|||
/// Converts self into an `OpaqueNode`.
|
||||
fn opaque(&self) -> OpaqueNode;
|
||||
|
||||
fn layout_parent_element(self, reflow_root: OpaqueNode) -> Option<Self::ConcreteElement> {
|
||||
if self.opaque() == reflow_root {
|
||||
None
|
||||
} else {
|
||||
self.parent_node().and_then(|n| n.as_element())
|
||||
}
|
||||
fn parent_element(&self) -> Option<Self::ConcreteElement> {
|
||||
self.parent_node().and_then(|n| n.as_element())
|
||||
}
|
||||
|
||||
fn debug_id(self) -> usize;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue