Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(176)

Unified Diff: third_party/WebKit/Source/core/layout/LayoutBox.cpp

Issue 1491193003: Fix several corner case issues of scrollbar paint invalidation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/layout/LayoutBox.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutBox.cpp b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
index e6f84ffc8f017c8b309cf4d2372e5466b4420738..87a3d7a831f0793e4f020a02d084ee7abd549c3d 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
@@ -4845,4 +4845,11 @@ ShapeOutsideInfo* LayoutBox::shapeOutsideInfo() const
return ShapeOutsideInfo::isEnabledFor(*this) ? ShapeOutsideInfo::info(*this) : nullptr;
}
+void LayoutBox::clearPreviousPaintInvalidationRects()
+{
+ LayoutBoxModelObject::clearPreviousPaintInvalidationRects();
+ if (PaintLayerScrollableArea* scrollableArea = this->scrollableArea())
+ scrollableArea->clearPreviousPaintInvalidationRects();
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698