aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/layout_task.rs
diff options
context:
space:
mode:
authorMs2ger <Ms2ger@gmail.com>2015-11-06 13:34:29 +0100
committerMs2ger <Ms2ger@gmail.com>2015-11-09 09:03:53 +0100
commitcc1b7acbe64a10c4d2f181f7989e68eda3fc0db9 (patch)
treeb7464a4d8ce172b2c34e0767cf23ca9a428413b0 /components/layout/layout_task.rs
parent8674345d6106eb7aef4594f6b1c45f2d2df642b4 (diff)
downloadservo-cc1b7acbe64a10c4d2f181f7989e68eda3fc0db9.tar.gz
servo-cc1b7acbe64a10c4d2f181f7989e68eda3fc0db9.zip
Make LayoutTask::solve_constraints a static method.
It does not use self.
Diffstat (limited to 'components/layout/layout_task.rs')
-rw-r--r--components/layout/layout_task.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/components/layout/layout_task.rs b/components/layout/layout_task.rs
index 0bbfbb71746..ca755bfac02 100644
--- a/components/layout/layout_task.rs
+++ b/components/layout/layout_task.rs
@@ -808,8 +808,7 @@ impl LayoutTask {
/// 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.
#[inline(never)]
- fn solve_constraints<'a>(&self,
- layout_root: &mut FlowRef,
+ fn solve_constraints(layout_root: &mut FlowRef,
shared_layout_context: &SharedLayoutContext) {
let _scope = layout_debug_scope!("solve_constraints");
sequential::traverse_flow_tree_preorder(layout_root, shared_layout_context);
@@ -1382,7 +1381,7 @@ impl LayoutTask {
match rw_data.parallel_traversal {
None => {
// Sequential mode.
- self.solve_constraints(&mut root_flow, &layout_context)
+ LayoutTask::solve_constraints(&mut root_flow, &layout_context)
}
Some(ref mut parallel) => {
// Parallel mode.