diff options
Diffstat (limited to 'components/layout/layout_task.rs')
-rw-r--r-- | components/layout/layout_task.rs | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/components/layout/layout_task.rs b/components/layout/layout_task.rs index 16264b247e5..9a433003bf9 100644 --- a/components/layout/layout_task.rs +++ b/components/layout/layout_task.rs @@ -8,10 +8,9 @@ use css::node_style::StyledNode; use construct::FlowConstructionResult; use context::SharedLayoutContext; -use flow::{Flow, ImmutableFlowUtils, MutableFlowUtils, MutableOwnedFlowUtils}; -use flow; +use flow::{mod, Flow, ImmutableFlowUtils, MutableFlowUtils, MutableOwnedFlowUtils}; use flow_ref::FlowRef; -use incremental::{Reflow, Repaint}; +use incremental::{LayoutDamageComputation, Reflow, ReflowEntireDocument, Repaint}; use layout_debug; use parallel::UnsafeFlow; use parallel; @@ -675,7 +674,10 @@ impl LayoutTask { Some((&data.url, data.iframe, self.first_reflow.get())), self.time_profiler_chan.clone(), || { - layout_root.propagate_restyle_damage(); + if opts::get().nonincremental_layout || + layout_root.compute_layout_damage().contains(ReflowEntireDocument) { + layout_root.reflow_entire_document() + } }); // Verification of the flow tree, which ensures that all nodes were either marked as leaves |