mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Use the rayon pool when computing styles in layout 2020
This commit is contained in:
parent
c6f241b0ce
commit
9b4baf2efa
1 changed files with 1 additions and 1 deletions
|
@ -1091,7 +1091,7 @@ impl LayoutThread {
|
|||
let rayon_pool = rayon_pool.as_ref().unwrap();
|
||||
|
||||
let box_tree = if token.should_traverse() {
|
||||
driver::traverse_dom(&traversal, token, None);
|
||||
driver::traverse_dom(&traversal, token, Some(rayon_pool));
|
||||
|
||||
let shared = DomTraversal::<ServoLayoutElement>::shared_context(&traversal);
|
||||
let root_node = document.root_element().unwrap().as_node();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue