mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Further changes required by Servo
This commit is contained in:
parent
5a9fae3fb5
commit
2376747273
3 changed files with 4 additions and 0 deletions
|
@ -140,6 +140,7 @@ where
|
|||
// ensures that we process all the elements at a given depth before
|
||||
// proceeding to the next depth, which is important for style sharing.
|
||||
rayon::scope_fifo(|scope| {
|
||||
#[cfg(feature = "gecko")]
|
||||
gecko_profiler_label!(Layout, StyleComputation);
|
||||
parallel::traverse_nodes(
|
||||
drain,
|
||||
|
|
|
@ -34,6 +34,7 @@ extern crate debug_unreachable;
|
|||
#[macro_use]
|
||||
extern crate derive_more;
|
||||
#[macro_use]
|
||||
#[cfg(feature = "gecko")]
|
||||
extern crate gecko_profiler;
|
||||
#[cfg(feature = "gecko")]
|
||||
#[macro_use]
|
||||
|
|
|
@ -274,6 +274,7 @@ pub fn traverse_nodes<'a, 'scope, E, D, I>(
|
|||
top_down_dom(&work, root, traversal_data, scope, pool, traversal, tls);
|
||||
} else {
|
||||
scope.spawn_fifo(move |scope| {
|
||||
#[cfg(feature = "gecko")]
|
||||
gecko_profiler_label!(Layout, StyleComputation);
|
||||
let work = work;
|
||||
top_down_dom(&work, root, traversal_data, scope, pool, traversal, tls);
|
||||
|
@ -284,6 +285,7 @@ pub fn traverse_nodes<'a, 'scope, E, D, I>(
|
|||
let nodes: WorkUnit<E::ConcreteNode> = chunk.collect();
|
||||
let traversal_data_copy = traversal_data.clone();
|
||||
scope.spawn_fifo(move |scope| {
|
||||
#[cfg(feature = "gecko")]
|
||||
gecko_profiler_label!(Layout, StyleComputation);
|
||||
let n = nodes;
|
||||
top_down_dom(&*n, root, traversal_data_copy, scope, pool, traversal, tls)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue