Skip to content
Permalink
Browse files

Use the rayon pool when computing styles in layout 2020

  • Loading branch information
nox committed Nov 27, 2019
1 parent c6f241b commit 9b4baf2efa5535bfb14a2b889a5c439e27f3cf4e
Showing with 1 addition and 1 deletion.
  1. +1 −1 components/layout_thread_2020/lib.rs
@@ -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();

0 comments on commit 9b4baf2

Please sign in to comment.
You can’t perform that action at this time.