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

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

Issue 940373003: Rename RenderText to LayoutText (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Merge w/HEAD again 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
Index: Source/core/layout/LayoutRubyRun.cpp
diff --git a/Source/core/layout/LayoutRubyRun.cpp b/Source/core/layout/LayoutRubyRun.cpp
index 7dc415a524096855c1db4765f2d6d3ecf22400d5..63283fab60fbb557b6d5dadbf9cb20afdb0e8cc8 100644
--- a/Source/core/layout/LayoutRubyRun.cpp
+++ b/Source/core/layout/LayoutRubyRun.cpp
@@ -34,7 +34,7 @@
#include "core/layout/LayoutRubyBase.h"
#include "core/layout/LayoutRubyText.h"
-#include "core/rendering/RenderText.h"
+#include "core/layout/LayoutText.h"
namespace blink {
@@ -297,9 +297,9 @@ void LayoutRubyRun::getOverhang(bool firstLine, LayoutObject* startRenderer, Lay
// and no more than half the font size.
int halfWidthOfFontSize = rubyText->style(firstLine)->fontSize() / 2;
if (startOverhang)
- startOverhang = std::min<int>(startOverhang, std::min<int>(toRenderText(startRenderer)->minLogicalWidth(), halfWidthOfFontSize));
+ startOverhang = std::min<int>(startOverhang, std::min<int>(toLayoutText(startRenderer)->minLogicalWidth(), halfWidthOfFontSize));
if (endOverhang)
- endOverhang = std::min<int>(endOverhang, std::min<int>(toRenderText(endRenderer)->minLogicalWidth(), halfWidthOfFontSize));
+ endOverhang = std::min<int>(endOverhang, std::min<int>(toLayoutText(endRenderer)->minLogicalWidth(), halfWidthOfFontSize));
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698