Index: third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp |
diff --git a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp |
index 9b80a61fda0352daf7965dc6fe4f84b4c1aed4f6..93573620b9393dabb2c883e5cd19512b8c49dc6f 100644 |
--- a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp |
+++ b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp |
@@ -677,6 +677,9 @@ |
m_inOverflowRelayout = true; |
SubtreeLayoutScope layoutScope(box()); |
layoutScope.setNeedsLayout(&box(), LayoutInvalidationReason::ScrollbarChanged); |
+ // TODO(wangxianzhu): Remove the following statement when paint invalidation |
+ // can detect client box changes. crbug.com/560418. |
+ box().setShouldDoFullPaintInvalidation(); |
if (box().isLayoutBlock()) { |
LayoutBlock& block = toLayoutBlock(box()); |
block.scrollbarsChanged(autoHorizontalScrollBarChanged, autoVerticalScrollBarChanged); |