diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2016-05-20 11:18:25 -0700 |
---|---|---|
committer | bors-servo <lbergstrom+bors@mozilla.com> | 2016-05-20 11:18:25 -0700 |
commit | 5bfebd4a99dbce1a40900fa2c22520c4896120fc (patch) | |
tree | ce6b46f0507c4364a49a4c3786679d62b7dc2122 /components/layout/layout_thread.rs | |
parent | 5f34522fba8548ac763ec1eee1c9ec8178b11654 (diff) | |
parent | 166e35a4c79edd8eddc8e48682fa5686dd0b05d1 (diff) | |
download | servo-5bfebd4a99dbce1a40900fa2c22520c4896120fc.tar.gz servo-5bfebd4a99dbce1a40900fa2c22520c4896120fc.zip |
Auto merge of #11294 - kilobtye:fix-resize, r=mbrubeck
Compute overflow when viewport size changed
Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data:
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy --faster` does not report any errors
- [X] These changes fix #11120 (github issue number if applicable).
Either:
- [ ] There are tests for these changes OR
- [ ] These changes do not require tests because _____
Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process.
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11294)
<!-- Reviewable:end -->
Diffstat (limited to 'components/layout/layout_thread.rs')
-rw-r--r-- | components/layout/layout_thread.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/layout/layout_thread.rs b/components/layout/layout_thread.rs index ed7805492c4..cbff9d2b7bd 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; @@ -1440,7 +1440,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); |