aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/traversal.rs
diff options
context:
space:
mode:
authorbors-servo <metajack+bors@gmail.com>2015-03-03 10:42:52 -0700
committerbors-servo <metajack+bors@gmail.com>2015-03-03 10:42:52 -0700
commit5cd6316addc1acf145ed3220719387ef6ef08d2f (patch)
tree7d8daec9db46a555ef567e356f5ab08488f9c71c /components/layout/traversal.rs
parent6fcc02e92f4c519239a834dc37a2965a4993322a (diff)
parent4c8bde5736853ae68332d1f97cc6f0b02499e35f (diff)
downloadservo-5cd6316addc1acf145ed3220719387ef6ef08d2f.tar.gz
servo-5cd6316addc1acf145ed3220719387ef6ef08d2f.zip
auto merge of #5067 : servo/servo/counters, r=SimonSapin
Only simple alphabetic and numeric counter styles are supported. (This is most of them though.) Although this PR adds a sequential pass to layout, I verified that on pages that contain a reasonable number of ordered lists (Reddit `/r/rust`), the time spent in generated content resolution is dwarfed by the time spent in the parallelizable parts of layout. So I don't expect this to negatively affect our parallelism expect perhaps in pathological cases. Moved from #4544, because Critic. Fixes #4544.
Diffstat (limited to 'components/layout/traversal.rs')
-rw-r--r--components/layout/traversal.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/components/layout/traversal.rs b/components/layout/traversal.rs
index 2211cf2fcce..04a99ee4b77 100644
--- a/components/layout/traversal.rs
+++ b/components/layout/traversal.rs
@@ -13,7 +13,7 @@ use context::LayoutContext;
use flow::{Flow, MutableFlowUtils};
use flow::{PreorderFlowTraversal, PostorderFlowTraversal};
use flow;
-use incremental::{RestyleDamage, BUBBLE_ISIZES, REFLOW, REFLOW_OUT_OF_FLOW};
+use incremental::{self, BUBBLE_ISIZES, REFLOW, REFLOW_OUT_OF_FLOW, RestyleDamage};
use wrapper::{layout_node_to_unsafe_layout_node, LayoutNode};
use wrapper::{PostorderNodeMutTraversal, ThreadSafeLayoutNode, UnsafeLayoutNode};
use wrapper::{PreorderDomTraversal, PostorderDomTraversal};
@@ -171,7 +171,7 @@ impl<'a> PreorderDomTraversal for RecalcStyleForNode<'a> {
&mut applicable_declarations,
&mut shareable);
} else {
- ThreadSafeLayoutNode::new(&node).set_restyle_damage(RestyleDamage::all())
+ ThreadSafeLayoutNode::new(&node).set_restyle_damage(incremental::all())
}
// Perform the CSS cascade.
@@ -376,3 +376,4 @@ impl<'a> PostorderFlowTraversal for BuildDisplayList<'a> {
flow.build_display_list(self.layout_context);
}
}
+