aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/layout_task.rs
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2014-09-19 10:51:02 -0400
committerJosh Matthews <josh@joshmatthews.net>2014-09-19 10:51:02 -0400
commitf139eb51763091165136c88a7b9931fc09ebe2cc (patch)
treebfe6f230f4129fe9fb5f9077f4a2277fbbbfeae8 /components/layout/layout_task.rs
parentfbd91de48bc4e5879c690a76a121d0137bfca67e (diff)
parentf5c0124363fd315651215b6a9a2d3d1391786f8a (diff)
downloadservo-f139eb51763091165136c88a7b9931fc09ebe2cc.tar.gz
servo-f139eb51763091165136c88a7b9931fc09ebe2cc.zip
Merge pull request #3401 from pcwalton/refactor-layout
layout: Remove `layout/extra.rs`.
Diffstat (limited to 'components/layout/layout_task.rs')
-rw-r--r--components/layout/layout_task.rs12
1 files changed, 3 insertions, 9 deletions
diff --git a/components/layout/layout_task.rs b/components/layout/layout_task.rs
index d6811617c0a..d535e1c247a 100644
--- a/components/layout/layout_task.rs
+++ b/components/layout/layout_task.rs
@@ -54,9 +54,9 @@ use servo_util::geometry;
use servo_util::logical_geometry::LogicalPoint;
use servo_util::opts::Opts;
use servo_util::smallvec::{SmallVec, SmallVec1};
+use servo_util::task::spawn_named_with_send_on_failure;
use servo_util::time::{TimeProfilerChan, profile};
use servo_util::time;
-use servo_util::task::spawn_named_with_send_on_failure;
use servo_util::workqueue::WorkQueue;
use std::cell::Cell;
use std::comm::{channel, Sender, Receiver, Select};
@@ -629,7 +629,7 @@ impl LayoutTask {
// positioned, it would return a reference to itself in
// `abs_descendants` and would lead to a circular reference.
// Set Root as CB for any remaining absolute descendants.
- flow.set_abs_descendants(abs_descendants);
+ flow.set_absolute_descendants(abs_descendants);
flow
}
_ => fail!("Flow construction didn't result in a flow at the root of the tree!"),
@@ -655,11 +655,7 @@ impl LayoutTask {
layout_root.traverse_postorder(&mut traversal);
}
- // FIXME(kmc): We want to prune nodes without the Reflow restyle damage
- // bit, but FloatContext values can't be reused, so we need to
- // recompute them every time.
- // NOTE: this currently computes borders, so any pruning should separate that operation
- // out.
+ // FIXME(pcwalton): Prune these two passes.
{
let mut traversal = AssignISizesTraversal {
layout_context: layout_context,
@@ -667,7 +663,6 @@ impl LayoutTask {
layout_root.traverse_preorder(&mut traversal);
}
- // FIXME(pcwalton): Prune this pass as well.
{
let mut traversal = AssignBSizesAndStoreOverflowTraversal {
layout_context: layout_context,
@@ -733,7 +728,6 @@ impl LayoutTask {
};
debug!("layout: received layout request for: {:s}", data.url.serialize());
- debug!("layout: damage is {:?}", data.damage);
debug!("layout: parsed Node tree");
debug!("{:?}", node.dump());