mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Hoist bloom filter into scoped TLS and simplify code.
This commit is contained in:
parent
25f32c4513
commit
b6e948dc5d
7 changed files with 19 additions and 130 deletions
|
@ -1152,7 +1152,7 @@ impl LayoutThread {
|
|||
data.reflow_info.goal);
|
||||
|
||||
// NB: Type inference falls apart here for some reason, so we need to be very verbose. :-(
|
||||
let traversal = RecalcStyleAndConstructFlows::new(shared_layout_context, element.as_node().opaque());
|
||||
let traversal = RecalcStyleAndConstructFlows::new(shared_layout_context);
|
||||
let dom_depth = Some(0); // This is always the root node.
|
||||
let token = {
|
||||
let stylist = &<RecalcStyleAndConstructFlows as
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue