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

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

Issue 218863002: [FastTextAutosizer] Fix the inline overlap issue. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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
Index: Source/core/rendering/FastTextAutosizer.cpp
diff --git a/Source/core/rendering/FastTextAutosizer.cpp b/Source/core/rendering/FastTextAutosizer.cpp
index 3f0f5573fecb952b4728169817acdf3908740cdd..44a9838846fee583dd9180ac82b9b4cb0a9aec6b 100644
--- a/Source/core/rendering/FastTextAutosizer.cpp
+++ b/Source/core/rendering/FastTextAutosizer.cpp
@@ -802,6 +802,10 @@ void FastTextAutosizer::applyMultiplier(RenderObject* renderer, float multiplier
style->setTextAutosizingMultiplier(multiplier);
style->setUnique();
renderer->setStyleInternal(style.release());
+
+ // Notify inline renderers that their width may have changed.
+ if (renderer->parent() && renderer->parent()->isRenderInline())
+ renderer->setPreferredLogicalWidthsDirty(MarkOnlyThis);
skobes 2014/03/31 17:19:58 Do you know why this works? I would have guessed
pdr. 2014/04/01 06:06:43 A good question. In looking into this I found our
}
bool FastTextAutosizer::isWiderOrNarrowerDescendant(Cluster* cluster)

Powered by Google App Engine
This is Rietveld 408576698