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

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

Issue 209853007: Fix line height when changing multiplier. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Accidentally fixed a test. 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
« no previous file with comments | « LayoutTests/TestExpectations ('k') | Source/core/rendering/RenderBlock.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/FastTextAutosizer.cpp
diff --git a/Source/core/rendering/FastTextAutosizer.cpp b/Source/core/rendering/FastTextAutosizer.cpp
index 3f0f5573fecb952b4728169817acdf3908740cdd..f1195baa9161fcfc5566801607b1cfdc9a0dd18a 100644
--- a/Source/core/rendering/FastTextAutosizer.cpp
+++ b/Source/core/rendering/FastTextAutosizer.cpp
@@ -802,6 +802,9 @@ void FastTextAutosizer::applyMultiplier(RenderObject* renderer, float multiplier
style->setTextAutosizingMultiplier(multiplier);
style->setUnique();
renderer->setStyleInternal(style.release());
+
+ if (renderer->isRenderBlock())
+ toRenderBlock(renderer)->invalidateLineHeight();
}
bool FastTextAutosizer::isWiderOrNarrowerDescendant(Cluster* cluster)
« no previous file with comments | « LayoutTests/TestExpectations ('k') | Source/core/rendering/RenderBlock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698