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

Unified Diff: third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.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/paint/PaintLayerScrollableArea.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
index e2b56bff44a3626f445b63f3687f7c2846d42391..52b96b909fac07d8b8e2e44d75954c8a2128e766 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
@@ -220,21 +220,18 @@ void PaintLayerScrollableArea::invalidateScrollbarRect(Scrollbar* scrollbar, con
if (scrollRect.isEmpty())
return;
- box().invalidateDisplayItemClient(*scrollbar);
-
LayoutRect paintInvalidationRect = LayoutRect(scrollRect);
box().flipForWritingMode(paintInvalidationRect);
IntRect intRect = pixelSnappedIntRect(paintInvalidationRect);
if (box().frameView()->isInPerformLayout()) {
+ box().invalidateDisplayItemClient(*scrollbar);
chrishtr 2015/10/22 00:02:41 Why this change?
Xianzhu 2015/10/22 01:17:04 See the comment for old code line 237.
addScrollbarDamage(scrollbar, intRect);
} else {
// FIXME: We should not allow paint invalidation out of paint invalidation state. crbug.com/457415
DisablePaintInvalidationStateAsserts disabler;
- // We have invalidated the displayItemClient of the scrollbar, but for now we still need to
- // invalidate the rectangles to trigger repaints.
- box().invalidatePaintRectangleNotInvalidatingDisplayItemClients(LayoutRect(intRect));
chrishtr 2015/10/22 00:02:41 Why did the old code avoid invalidating display it
Xianzhu 2015/10/22 01:17:04 Because we had invalidated display item clients ab
+ box().invalidatePaintRectangleForDisplayItemClient(*scrollbar, LayoutRect(intRect));
}
}

Powered by Google App Engine
This is Rietveld 408576698