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

Unified Diff: third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.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/compositing/PaintLayerCompositor.cpp
diff --git a/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp b/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp
index 6d1bf5e6804f771ffa97a4784cc174588667985c..f6630b9d72c357828223ae72f95d62baced59eb3 100644
--- a/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp
+++ b/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp
@@ -337,6 +337,10 @@ static void forceRecomputePaintInvalidationRectsIncludingNonCompositingDescendan
// changing the previous position from our paint invalidation container, which is fine as
// we want a full paint invalidation anyway.
layoutObject->setPreviousPaintInvalidationRect(LayoutRect());
chrishtr 2015/12/03 18:52:36 Add a new virtual method LayoutObject::clearPrevio
Xianzhu 2015/12/03 22:13:27 Done.
+ if (layoutObject->isBox()) {
+ if (PaintLayerScrollableArea* scrollableArea = toLayoutBox(layoutObject)->scrollableArea())
+ scrollableArea->clearPreviousPaintInvalidationRects();
+ }
layoutObject->setShouldDoFullPaintInvalidation();
for (LayoutObject* child = layoutObject->slowFirstChild(); child; child = child->nextSibling()) {

Powered by Google App Engine
This is Rietveld 408576698