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

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

Issue 940373003: Rename RenderText to LayoutText (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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 | « Source/core/layout/LayoutWordBreak.cpp ('k') | Source/core/layout/TextRunConstructor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/TextAutosizer.cpp
diff --git a/Source/core/layout/TextAutosizer.cpp b/Source/core/layout/TextAutosizer.cpp
index beea7d504cec44813bb477c49993c247c62743a7..863f74bdd39cf662a2d952055c6d27122dd39340 100644
--- a/Source/core/layout/TextAutosizer.cpp
+++ b/Source/core/layout/TextAutosizer.cpp
@@ -194,7 +194,7 @@ static bool blockIsRowOfLinks(const LayoutBlock* block)
while (renderer) {
if (!isPotentialClusterRoot(renderer)) {
- if (renderer->isText() && toRenderText(renderer)->text().stripWhiteSpace().length() > 3)
+ if (renderer->isText() && toLayoutText(renderer)->text().stripWhiteSpace().length() > 3)
return false;
if (!renderer->isInline() || renderer->isBR())
return false;
@@ -654,7 +654,7 @@ bool TextAutosizer::clusterHasEnoughTextToAutosize(Cluster* cluster, const Layou
// Note: Using text().stripWhiteSpace().length() instead of renderedTextLength() because
// the lineboxes will not be built until layout. These values can be different.
// Note: This is an approximation assuming each character is 1em wide.
- length += toRenderText(descendant)->text().stripWhiteSpace().length() * descendant->style()->specifiedFontSize();
+ length += toLayoutText(descendant)->text().stripWhiteSpace().length() * descendant->style()->specifiedFontSize();
if (length >= minimumTextLengthToAutosize) {
cluster->m_hasEnoughTextToAutosize = HasEnoughText;
« no previous file with comments | « Source/core/layout/LayoutWordBreak.cpp ('k') | Source/core/layout/TextRunConstructor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698