From 166e35a4c79edd8eddc8e48682fa5686dd0b05d1 Mon Sep 17 00:00:00 2001 From: kilobtye Date: Fri, 20 May 2016 18:55:36 +0800 Subject: [PATCH] Compute overflow when viewport size changed --- components/layout/layout_thread.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/layout/layout_thread.rs b/components/layout/layout_thread.rs index 2a6fda09344..4efff7812a9 100644 --- a/components/layout/layout_thread.rs +++ b/components/layout/layout_thread.rs @@ -30,8 +30,8 @@ use gfx::font_context; use gfx::paint_thread::LayoutToPaintMsg; use gfx_traits::{color, Epoch, LayerId, ScrollPolicy}; use heapsize::HeapSizeOf; -use incremental::{LayoutDamageComputation, REFLOW, REFLOW_ENTIRE_DOCUMENT, REFLOW_OUT_OF_FLOW}; -use incremental::{REPAINT}; +use incremental::{LayoutDamageComputation}; +use incremental::{REPAINT, STORE_OVERFLOW, REFLOW_OUT_OF_FLOW, REFLOW, REFLOW_ENTIRE_DOCUMENT}; use ipc_channel::ipc::{self, IpcReceiver, IpcSender}; use ipc_channel::router::ROUTER; use layout_debug; @@ -1442,7 +1442,7 @@ impl LayoutThread { fn reflow_all_nodes(flow: &mut Flow) { debug!("reflowing all nodes!"); - flow::mut_base(flow).restyle_damage.insert(REFLOW | REPAINT); + flow::mut_base(flow).restyle_damage.insert(REPAINT | STORE_OVERFLOW | REFLOW); for child in flow::child_iter_mut(flow) { LayoutThread::reflow_all_nodes(child);