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

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

Issue 2060053002: Set paintingLayerNeedsRepaint() in layout tree (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Set paintingLayerNeedsRepaint() in layout tree 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/PaintInvalidator.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintInvalidator.cpp b/third_party/WebKit/Source/core/paint/PaintInvalidator.cpp
index 2edd221a78cf73e4479d4c830b7fc0a2887f04d5..d10a86d022d3e704bbc0969262180cda1268d03e 100644
--- a/third_party/WebKit/Source/core/paint/PaintInvalidator.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintInvalidator.cpp
@@ -6,6 +6,7 @@
#include "core/frame/FrameView.h"
#include "core/layout/LayoutObject.h"
+#include "core/paint/PaintLayer.h"
namespace blink {
@@ -26,11 +27,14 @@ void PaintInvalidator::invalidatePaintIfNeeded(const LayoutObject& layoutObject,
paintInvalidatorContext->setForceSubtreeInvalidationCheckingWithinContainer();
PaintInvalidationReason reason = layoutObject.getMutableForPainting().invalidatePaintIfNeeded(*paintInvalidatorContext);
- layoutObject.getMutableForPainting().clearPaintInvalidationFlags(*paintInvalidatorContext);
-
paintInvalidatorContext->updateForChildren(reason);
}
+void PaintInvalidator::didWalkSubtrees(const PaintInvalidatorContext& context)
+{
+ context.currentObject().getMutableForPainting().clearPaintInvalidationFlags(context);
+}
+
void PaintInvalidator::processPendingDelayedPaintInvalidations()
{
for (auto target : m_pendingDelayedPaintInvalidations)
« no previous file with comments | « third_party/WebKit/Source/core/paint/PaintInvalidator.h ('k') | third_party/WebKit/Source/core/paint/PaintLayer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698