aboutsummaryrefslogtreecommitdiffstats
path: root/components/util
diff options
context:
space:
mode:
Diffstat (limited to 'components/util')
-rw-r--r--components/util/opts.rs6
-rw-r--r--components/util/time.rs6
2 files changed, 12 insertions, 0 deletions
diff --git a/components/util/opts.rs b/components/util/opts.rs
index b5970a1f5c1..cedfa26f7ae 100644
--- a/components/util/opts.rs
+++ b/components/util/opts.rs
@@ -59,6 +59,8 @@ pub struct Opts {
/// sequential algorithm.
pub layout_threads: uint,
+ pub incremental_layout: bool,
+
/// True to exit after the page load (`-x`).
pub exit_after_load: bool,
@@ -126,6 +128,7 @@ pub fn from_cmdline_args(args: &[String]) -> Option<Opts> {
getopts::optflagopt("m", "memory-profile", "Memory profiler flag and output interval", "10"),
getopts::optflag("x", "exit", "Exit after load flag"),
getopts::optopt("y", "layout-threads", "Number of threads to use for layout", "1"),
+ getopts::optflag("i", "incremental-layout", "Whether or not to use incremental layout."),
getopts::optflag("z", "headless", "Headless mode"),
getopts::optflag("f", "hard-fail", "Exit on task failure instead of displaying about:failure"),
getopts::optflag("b", "bubble-widths", "Bubble intrinsic widths separately like other engines"),
@@ -208,6 +211,8 @@ pub fn from_cmdline_args(args: &[String]) -> Option<Opts> {
None => cmp::max(rt::default_sched_threads() * 3 / 4, 1),
};
+ let incremental_layout = opt_match.opt_present("i");
+
let mut bubble_inline_sizes_separately = opt_match.opt_present("b");
let trace_layout = opt_match.opt_present("trace-layout");
@@ -242,6 +247,7 @@ pub fn from_cmdline_args(args: &[String]) -> Option<Opts> {
memory_profiler_period: memory_profiler_period,
enable_experimental: opt_match.opt_present("e"),
layout_threads: layout_threads,
+ incremental_layout: incremental_layout,
exit_after_load: opt_match.opt_present("x"),
output_file: opt_match.opt_str("o"),
headless: opt_match.opt_present("z"),
diff --git a/components/util/time.rs b/components/util/time.rs
index d3e9b5df65d..8ac5bd05943 100644
--- a/components/util/time.rs
+++ b/components/util/time.rs
@@ -68,6 +68,8 @@ pub enum TimeProfilerCategory {
CompositingCategory,
LayoutPerformCategory,
LayoutStyleRecalcCategory,
+ LayoutRestyleDamagePropagation,
+ LayoutNonIncrementalReset,
LayoutSelectorMatchCategory,
LayoutTreeBuilderCategory,
LayoutDamagePropagateCategory,
@@ -86,6 +88,8 @@ impl Formatable for TimeProfilerCategory {
fn format(&self) -> String {
let padding = match *self {
LayoutStyleRecalcCategory |
+ LayoutRestyleDamagePropagation |
+ LayoutNonIncrementalReset |
LayoutMainCategory |
LayoutDispListBuildCategory |
LayoutShapingCategory |
@@ -99,6 +103,8 @@ impl Formatable for TimeProfilerCategory {
CompositingCategory => "Compositing",
LayoutPerformCategory => "Layout",
LayoutStyleRecalcCategory => "Style Recalc",
+ LayoutRestyleDamagePropagation => "Restyle Damage Propagation",
+ LayoutNonIncrementalReset => "Non-incremental reset (temporary)",
LayoutSelectorMatchCategory => "Selector Matching",
LayoutTreeBuilderCategory => "Tree Building",
LayoutDamagePropagateCategory => "Damage Propagation",