aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout_thread/lib.rs
diff options
context:
space:
mode:
authorPu Xingyu <pu.stshine@gmail.com>2017-04-14 23:44:20 +0800
committerPu Xingyu <pu.stshine@gmail.com>2017-04-23 08:32:25 +0800
commit68f74d5cbe2ffeca8bb6144abeec258a89edc440 (patch)
treeb1b95aab3fc50f07e8bf1d042d2b72a4ee7de552 /components/layout_thread/lib.rs
parent56435db820ad13d7fcb9acf9ce4fa84667234706 (diff)
downloadservo-68f74d5cbe2ffeca8bb6144abeec258a89edc440.tar.gz
servo-68f74d5cbe2ffeca8bb6144abeec258a89edc440.zip
Force reflow in the sequential fallback of block format context
When reflowing a block format context during the inorder traversal, propagate restyle damage manually to its children since they were already reflowed.
Diffstat (limited to 'components/layout_thread/lib.rs')
-rw-r--r--components/layout_thread/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/layout_thread/lib.rs b/components/layout_thread/lib.rs
index 9683afcbd29..c24e29b6b41 100644
--- a/components/layout_thread/lib.rs
+++ b/components/layout_thread/lib.rs
@@ -60,7 +60,7 @@ use layout::context::heap_size_of_persistent_local_context;
use layout::display_list_builder::ToGfxColor;
use layout::flow::{self, Flow, ImmutableFlowUtils, MutableFlowUtils, MutableOwnedFlowUtils};
use layout::flow_ref::FlowRef;
-use layout::incremental::{LayoutDamageComputation, REFLOW_ENTIRE_DOCUMENT};
+use layout::incremental::{LayoutDamageComputation, REFLOW_ENTIRE_DOCUMENT, RelayoutMode};
use layout::layout_debug;
use layout::opaque_node::OpaqueNodeMethods;
use layout::parallel;
@@ -810,7 +810,7 @@ impl LayoutThread {
fn solve_constraints(layout_root: &mut Flow,
layout_context: &LayoutContext) {
let _scope = layout_debug_scope!("solve_constraints");
- sequential::traverse_flow_tree_preorder(layout_root, layout_context);
+ sequential::traverse_flow_tree_preorder(layout_root, layout_context, RelayoutMode::Incremental);
}
/// Performs layout constraint solving in parallel.