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

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

Issue 1416053003: Let synchronized painting generate correct paint invalidation rects (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: For landing 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/PaintLayer.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintLayer.cpp b/third_party/WebKit/Source/core/paint/PaintLayer.cpp
index 0893dc53e4cc147e85245626992b4b954d0a76ba..03faeedc28f2300eb665ac90d6f33873b43e2037 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayer.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayer.cpp
@@ -2692,11 +2692,15 @@ void PaintLayer::markAncestorChainForNeedsRepaint()
// Need to access compositingState(). We've ensured correct flag setting when compositingState() changes.
DisableCompositingQueryAsserts disabler;
- if (compositingState() != NotComposited)
- return;
-
PaintLayer* layer = this;
while (true) {
+ if (layer->compositingState() == PaintsIntoOwnBacking)
+ return;
+ if (CompositedLayerMapping* groupedMapping = layer->groupedMapping()) {
+ groupedMapping->owningLayer().setNeedsRepaint();
+ return;
+ }
+
PaintLayer* container = layer->parent();
if (!container) {
LayoutObject* owner = layer->layoutObject()->frame()->ownerLayoutObject();
@@ -2709,8 +2713,6 @@ void PaintLayer::markAncestorChainForNeedsRepaint()
break;
container->m_needsRepaint = true;
}
- if (container->compositingState() != NotComposited)
- break;
layer = container;
}
}

Powered by Google App Engine
This is Rietveld 408576698