From 512764b7dadd4a975f861b89dcffce3936ffbe00 Mon Sep 17 00:00:00 2001 From: Alexandrov Sergey Date: Tue, 23 Aug 2016 00:25:30 +0300 Subject: [PATCH] force style calculation/element construction for non-incremental mode --- components/style/traversal.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/style/traversal.rs b/components/style/traversal.rs index ed84fafa345..5f041919596 100644 --- a/components/style/traversal.rs +++ b/components/style/traversal.rs @@ -179,7 +179,7 @@ pub trait DomTraversalContext { /// Note that this is true unconditionally for servo, since it requires to /// bubble the widths bottom-up for all the DOM. fn should_process(&self, node: N) -> bool { - node.is_dirty() || node.has_dirty_descendants() + opts::get().nonincremental_layout || node.is_dirty() || node.has_dirty_descendants() } /// Do an action over the child before pushing him to the work queue.