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

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

Issue 2071053003: Invalidate as DisplayItemClient when PaintLayer is setNeedsRepaint (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@TrackObjectInvalidation
Patch Set: - Created 4 years, 6 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 4677310c3963f59ac7265564d0146e979a794564..63490d93975d90e25af178863d1094bd29dfb420 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayer.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayer.cpp
@@ -2853,12 +2853,18 @@ void PaintLayer::computeSelfHitTestRects(LayerHitTestRects& rects) const
void PaintLayer::setNeedsRepaint()
{
- m_needsRepaint = true;
+ setNeedsRepaintInternal();
// Do this unconditionally to ensure container chain is marked when compositing status of the layer changes.
markCompositingContainerChainForNeedsRepaint();
}
+void PaintLayer::setNeedsRepaintInternal()
+{
+ m_needsRepaint = true;
+ setDisplayItemsUncached(); // Invalidate as a display item client.
+}
+
void PaintLayer::markCompositingContainerChainForNeedsRepaint()
{
// Need to access compositingState(). We've ensured correct flag setting when compositingState() changes.
@@ -2884,7 +2890,7 @@ void PaintLayer::markCompositingContainerChainForNeedsRepaint()
}
if (container->m_needsRepaint)
break;
- container->m_needsRepaint = true;
+ container->setNeedsRepaintInternal();
layer = container;
}
}

Powered by Google App Engine
This is Rietveld 408576698