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

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

Issue 1416053003: Let synchronized painting generate correct paint invalidation rects (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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/layout/LayoutView.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutView.cpp b/third_party/WebKit/Source/core/layout/LayoutView.cpp
index eea396a633fef1a2a4c58709cbe9bb466ebb6100..35ea85a5a11f53d6fc2c9efc1f0bb70e18082348 100644
--- a/third_party/WebKit/Source/core/layout/LayoutView.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutView.cpp
@@ -390,8 +390,9 @@ void LayoutView::invalidateTreeIfNeeded(PaintInvalidationState& paintInvalidatio
if (doingFullPaintInvalidation() && !dirtyRect.isEmpty()) {
const LayoutBoxModelObject& paintInvalidationContainer = paintInvalidationState.paintInvalidationContainer();
PaintLayer::mapRectToPaintInvalidationBacking(this, &paintInvalidationContainer, dirtyRect, &paintInvalidationState);
- invalidatePaintUsingContainer(paintInvalidationContainer, dirtyRect, PaintInvalidationFull);
- invalidateDisplayItemClients(paintInvalidationContainer, PaintInvalidationFull, dirtyRect, dirtyRect);
+ Vector<LayoutRect> paintInvalidationRects;
+ invalidatePaintUsingContainer(paintInvalidationContainer, dirtyRect, PaintInvalidationFull, paintInvalidationRects);
+ invalidateDisplayItemClients(paintInvalidationContainer, PaintInvalidationFull, paintInvalidationRects);
}
LayoutBlock::invalidateTreeIfNeeded(paintInvalidationState);
}

Powered by Google App Engine
This is Rietveld 408576698