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

Unified Diff: third_party/WebKit/Source/core/paint/BoxPaintInvalidator.cpp

Issue 2707063003: Don't invalidate rect if it's covered by fully invalidated parent's visual rect (Closed)
Patch Set: - Created 3 years, 10 months 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/paint/BoxPaintInvalidator.cpp
diff --git a/third_party/WebKit/Source/core/paint/BoxPaintInvalidator.cpp b/third_party/WebKit/Source/core/paint/BoxPaintInvalidator.cpp
index b4a5f0d331840567bc42f03895c846d9f4e5cabb..f4a3e11d8bc7e34bc4d5fab52ddd176299c3eeae 100644
--- a/third_party/WebKit/Source/core/paint/BoxPaintInvalidator.cpp
+++ b/third_party/WebKit/Source/core/paint/BoxPaintInvalidator.cpp
@@ -66,11 +66,11 @@ bool BoxPaintInvalidator::incrementallyInvalidatePaint(
if (rightDelta.isEmpty() && bottomDelta.isEmpty())
return false;
- ObjectPaintInvalidator objectPaintInvalidator(m_box);
- objectPaintInvalidator.invalidatePaintUsingContainer(
- *m_context.paintInvalidationContainer, rightDelta, reason);
- objectPaintInvalidator.invalidatePaintUsingContainer(
- *m_context.paintInvalidationContainer, bottomDelta, reason);
+ ObjectPaintInvalidatorWithContext objectPaintInvalidator(m_box, m_context);
+ objectPaintInvalidator.invalidatePaintRectangleWithContext(rightDelta,
+ reason);
+ objectPaintInvalidator.invalidatePaintRectangleWithContext(bottomDelta,
+ reason);
return true;
}

Powered by Google App Engine
This is Rietveld 408576698