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

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 23d2efba1c73b9e55b940bde70e1b4d325eaafe1..edd99540927ccc73030a5ce0c337a9fe18c3b34e 100644
--- a/third_party/WebKit/Source/core/paint/BoxPaintInvalidator.cpp
+++ b/third_party/WebKit/Source/core/paint/BoxPaintInvalidator.cpp
@@ -85,11 +85,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