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

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

Issue 2697193011: DO NOT LAND: Test no paint invalidation for LayoutText. (Closed)
Patch Set: Created 3 years, 10 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/Source/core/layout/LayoutText.h ('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/PaintInvalidator.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintInvalidator.cpp b/third_party/WebKit/Source/core/paint/PaintInvalidator.cpp
index 0548d0fafb2748aa0c73f1f1a6a4143f93290d5b..763faa30d4bfb324642eb241012681b8160854e6 100644
--- a/third_party/WebKit/Source/core/paint/PaintInvalidator.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintInvalidator.cpp
@@ -378,6 +378,8 @@ void PaintInvalidator::invalidatePaintIfNeeded(
void PaintInvalidator::invalidatePaintIfNeeded(
const LayoutObject& object,
PaintInvalidatorContext& context) {
+ if (object.isText())
+ return;
object.getMutableForPainting().ensureIsReadyForPaintInvalidation();
// The paint offset should already be updated through
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutText.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698