From 04581660b3b4d7dca0efb99e0b60b460933df1c2 Mon Sep 17 00:00:00 2001 From: Glenn Watson Date: Thu, 13 Aug 2015 13:53:03 +1000 Subject: [PATCH] Add fix for compositor repainting tiles on scroll layers that have stale clipping results. Needed for #6643. Fixes #7153. --- components/layout/block.rs | 2 ++ 1 file changed, 2 insertions(+) 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; } _ => {} }