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

Unified Diff: Source/core/layout/LayoutText.cpp

Issue 1149083009: Force invalidation of LayoutText when text data changes (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update expectations (see previous try results for changes) Created 5 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
« no previous file with comments | « LayoutTests/compositing/repaint/composited-inline-change-text-data-keep-geometry-expected.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutText.cpp
diff --git a/Source/core/layout/LayoutText.cpp b/Source/core/layout/LayoutText.cpp
index 2c2acfa3301f0e65077233bff7214be5ac6a0304..39ad0986538f54d622b8e73b053d2259f8c4f41d 100644
--- a/Source/core/layout/LayoutText.cpp
+++ b/Source/core/layout/LayoutText.cpp
@@ -1396,7 +1396,7 @@ void LayoutText::setText(PassRefPtr<StringImpl> text, bool force)
// insertChildNode() fails to set true to owner. To avoid that, we call
// setNeedsLayoutAndPrefWidthsRecalc() only if this LayoutText has parent.
if (parent())
- setNeedsLayoutAndPrefWidthsRecalc(LayoutInvalidationReason::TextChanged);
+ setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalidation(LayoutInvalidationReason::TextChanged);
m_knownToHaveNoOverflowAndNoFallbackFonts = false;
if (AXObjectCache* cache = document().existingAXObjectCache())
« no previous file with comments | « LayoutTests/compositing/repaint/composited-inline-change-text-data-keep-geometry-expected.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698