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

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

Issue 2751183002: Update reason after full paint invalidation (Closed)
Patch Set: rebaseline-cl 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
« no previous file with comments | « third_party/WebKit/LayoutTests/virtual/disable-spinvalidation/paint/invalidation/window-resize-frameset-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/paint/ObjectPaintInvalidator.cpp
diff --git a/third_party/WebKit/Source/core/paint/ObjectPaintInvalidator.cpp b/third_party/WebKit/Source/core/paint/ObjectPaintInvalidator.cpp
index 7949b0458114af0d74af6a1772baaae3230e0757..256b397caaf59cb537cd978413d18291e05fb323 100644
--- a/third_party/WebKit/Source/core/paint/ObjectPaintInvalidator.cpp
+++ b/third_party/WebKit/Source/core/paint/ObjectPaintInvalidator.cpp
@@ -637,6 +637,9 @@ ObjectPaintInvalidatorWithContext::invalidatePaintIfNeededWithComputedReason(
return PaintInvalidationDelayedFull;
default:
DCHECK(isImmediateFullPaintInvalidationReason(reason));
+ // This allows descendants to know the computed reason if it's different
+ // from the original reason before paint invalidation.
+ m_object.getMutableForPainting().setShouldDoFullPaintInvalidation(reason);
fullyInvalidatePaint(reason, m_context.oldVisualRect,
m_object.visualRect());
}
« no previous file with comments | « third_party/WebKit/LayoutTests/virtual/disable-spinvalidation/paint/invalidation/window-resize-frameset-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698