mirror of
https://github.com/servo/servo.git
synced 2025-07-25 16:20:36 +01:00
Make LayoutTask::solve_constraints a static method.
It does not use self.
This commit is contained in:
parent
8674345d61
commit
cc1b7acbe6
1 changed files with 2 additions and 3 deletions
|
@ -808,8 +808,7 @@ impl LayoutTask {
|
||||||
/// This corresponds to `Reflow()` in Gecko and `layout()` in WebKit/Blink and should be
|
/// This corresponds to `Reflow()` in Gecko and `layout()` in WebKit/Blink and should be
|
||||||
/// benchmarked against those two. It is marked `#[inline(never)]` to aid profiling.
|
/// benchmarked against those two. It is marked `#[inline(never)]` to aid profiling.
|
||||||
#[inline(never)]
|
#[inline(never)]
|
||||||
fn solve_constraints<'a>(&self,
|
fn solve_constraints(layout_root: &mut FlowRef,
|
||||||
layout_root: &mut FlowRef,
|
|
||||||
shared_layout_context: &SharedLayoutContext) {
|
shared_layout_context: &SharedLayoutContext) {
|
||||||
let _scope = layout_debug_scope!("solve_constraints");
|
let _scope = layout_debug_scope!("solve_constraints");
|
||||||
sequential::traverse_flow_tree_preorder(layout_root, shared_layout_context);
|
sequential::traverse_flow_tree_preorder(layout_root, shared_layout_context);
|
||||||
|
@ -1382,7 +1381,7 @@ impl LayoutTask {
|
||||||
match rw_data.parallel_traversal {
|
match rw_data.parallel_traversal {
|
||||||
None => {
|
None => {
|
||||||
// Sequential mode.
|
// Sequential mode.
|
||||||
self.solve_constraints(&mut root_flow, &layout_context)
|
LayoutTask::solve_constraints(&mut root_flow, &layout_context)
|
||||||
}
|
}
|
||||||
Some(ref mut parallel) => {
|
Some(ref mut parallel) => {
|
||||||
// Parallel mode.
|
// Parallel mode.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue