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

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

Issue 1511143002: Reland of 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/LayoutObject.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutObject.cpp b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
index 7f142f6b638696d8bc75913da0f0855cf9bdc626..8488d8811639a3b47cf28a90452a988fc2532ead 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObject.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
@@ -1517,6 +1517,11 @@
m_previousPaintInvalidationRect.move(LayoutSize(scrollDelta));
}
+void LayoutObject::clearPreviousPaintInvalidationRects()
+{
+ setPreviousPaintInvalidationRect(LayoutRect());
+}
+
void LayoutObject::incrementallyInvalidatePaint(const LayoutBoxModelObject& paintInvalidationContainer, const LayoutRect& oldBounds, const LayoutRect& newBounds, const LayoutPoint& positionFromPaintInvalidationBacking)
{
ASSERT(oldBounds.location() == newBounds.location());
@@ -3423,7 +3428,7 @@
// Clear previous paint invalidation rect on the original paint invalidation container to avoid
// under-invalidation if the new paint invalidation rect on the new paint invalidation container
// happens to be the same as the old one.
- setPreviousPaintInvalidationRect(LayoutRect());
+ clearPreviousPaintInvalidationRects();
}
void LayoutObject::invalidatePaintIncludingNonCompositingDescendants()

Powered by Google App Engine
This is Rietveld 408576698