aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbors-servo <metajack+bors@gmail.com>2015-08-12 22:56:01 -0600
committerbors-servo <metajack+bors@gmail.com>2015-08-12 22:56:01 -0600
commit8f55af119033e7644d560ca607ad7a89916f53e6 (patch)
treeaec467f31370ba4c7d01b22c142acf97c16442fd
parent55a9abdf358dd8f05b06849f0d39b4e8ca8f6ba3 (diff)
parent04581660b3b4d7dca0efb99e0b60b460933df1c2 (diff)
downloadservo-8f55af119033e7644d560ca607ad7a89916f53e6.tar.gz
servo-8f55af119033e7644d560ca607ad7a89916f53e6.zip
Auto merge of #7183 - glennw:scroll-clipping, r=pcwalton
Add fix / hack for compositor repainting tiles on scroll layers that have stale clipping results. Needed for #6643. Fixes #7153. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7183) <!-- Reviewable:end -->
-rw-r--r--components/layout/block.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/components/layout/block.rs b/components/layout/block.rs
index e044c04d3c0..fdfec58e776 100644
--- a/components/layout/block.rs
+++ b/components/layout/block.rs
@@ -1763,6 +1763,8 @@ impl Flow for BlockFlow {
(overflow_x::T::auto, _) | (overflow_x::T::scroll, _) |
(_, overflow_x::T::auto) | (_, overflow_x::T::scroll) => {
self.base.flags.insert(NEEDS_LAYER);
+ self.base.clip = ClippingRegion::max();
+ self.base.stacking_relative_position_of_display_port = MAX_RECT;
}
_ => {}
}