Add fix for compositor repainting tiles on scroll layers that have stale clipping results.

Needed for #6643. Fixes #7153.
This commit is contained in:
Glenn Watson 2015-08-13 13:53:03 +10:00
parent e44ae6404f
commit 04581660b3

View file

@ -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;
}
_ => {}
}