aboutsummaryrefslogtreecommitdiffstats
path: root/components/util/time.rs
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2015-03-05 12:37:37 -0800
committerPatrick Walton <pcwalton@mimiga.net>2015-03-09 17:13:45 -0700
commitf9cdd05d58e7f1a8cd6198dad3058d86bf479a08 (patch)
treea09fafccb79081207407e9a691728816c75231c1 /components/util/time.rs
parent2df4dd9e098671fdbe2951f6669473e7737d6ed3 (diff)
downloadservo-f9cdd05d58e7f1a8cd6198dad3058d86bf479a08.tar.gz
servo-f9cdd05d58e7f1a8cd6198dad3058d86bf479a08.zip
layout: Implement ordered lists, CSS counters, and `quotes` per CSS 2.1
§ 12.3-12.5. 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.
Diffstat (limited to 'components/util/time.rs')
-rw-r--r--components/util/time.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/components/util/time.rs b/components/util/time.rs
index 46de5abbceb..c9cf32c0617 100644
--- a/components/util/time.rs
+++ b/components/util/time.rs
@@ -81,6 +81,7 @@ pub enum TimeProfilerCategory {
LayoutSelectorMatch,
LayoutTreeBuilder,
LayoutDamagePropagate,
+ LayoutGeneratedContent,
LayoutMain,
LayoutParallelWarmup,
LayoutShaping,
@@ -99,6 +100,7 @@ impl Formatable for TimeProfilerCategory {
TimeProfilerCategory::LayoutStyleRecalc |
TimeProfilerCategory::LayoutRestyleDamagePropagation |
TimeProfilerCategory::LayoutNonIncrementalReset |
+ TimeProfilerCategory::LayoutGeneratedContent |
TimeProfilerCategory::LayoutMain |
TimeProfilerCategory::LayoutDispListBuild |
TimeProfilerCategory::LayoutShaping |
@@ -119,6 +121,7 @@ impl Formatable for TimeProfilerCategory {
TimeProfilerCategory::LayoutSelectorMatch => "Selector Matching",
TimeProfilerCategory::LayoutTreeBuilder => "Tree Building",
TimeProfilerCategory::LayoutDamagePropagate => "Damage Propagation",
+ TimeProfilerCategory::LayoutGeneratedContent => "Generated Content Resolution",
TimeProfilerCategory::LayoutMain => "Primary Layout Pass",
TimeProfilerCategory::LayoutParallelWarmup => "Parallel Warmup",
TimeProfilerCategory::LayoutShaping => "Shaping",