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

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

Issue 2792833002: Revert of Optimize the pre-paint tree walk and ClipRects (Closed)
Patch Set: Created 3 years, 9 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/PaintLayerPainter.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp b/third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp
index e32ca9f3705cfe02bfffd34581ac81b75da623f1..8165be07c17c0a1bc1d635920683fca0955c750e 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp
@@ -228,8 +228,9 @@
paintLayer.clipper(PaintLayer::DoNotUseGeometryMapper)
.paintingClipRects(paintingInfo.rootLayer, respectOverflowClip,
subpixelAccumulation);
- if (!paintLayer.hasPreviousPaintingClipRects() ||
- clipRects != paintLayer.previousPaintingClipRects()) {
+ ClipRects* previousClipRects = paintLayer.previousPaintingClipRects();
+ if (&clipRects != previousClipRects &&
+ (!previousClipRects || clipRects != *previousClipRects)) {
needsRepaint = true;
shouldClearEmptyPaintPhaseFlags = true;
}
« no previous file with comments | « third_party/WebKit/Source/core/paint/PaintLayerClipper.cpp ('k') | third_party/WebKit/Source/core/paint/PrePaintTreeWalk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698