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

Unified Diff: Source/core/rendering/RenderObject.cpp

Issue 474793002: Add GraphicsLayerDebugInfo::includesNewPaintInvalidation to distinguish paint from new RenderObjects (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: reset from FrameView Created 6 years, 4 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: Source/core/rendering/RenderObject.cpp
diff --git a/Source/core/rendering/RenderObject.cpp b/Source/core/rendering/RenderObject.cpp
index cb6890fc7fbb2181ff07bf906bad36f7c4adef6c..9f3b5e854dece7bd6745eecf80be1b74751674c3 100644
--- a/Source/core/rendering/RenderObject.cpp
+++ b/Source/core/rendering/RenderObject.cpp
@@ -1672,6 +1672,10 @@ InvalidationReason RenderObject::invalidatePaintIfNeeded(const RenderLayerModelO
return invalidationReason;
}
+ if (view()->usesCompositing() && !hadPaintInvalidation())
+ paintInvalidationContainer.layer()->paintInvalidator().setBackingIncludesFirstPaintInvalidation();
+ setHadPaintInvalidation(true);
+
fullyInvalidatePaint(paintInvalidationContainer, invalidationReason, oldBounds, newBounds);
return invalidationReason;
}

Powered by Google App Engine
This is Rietveld 408576698