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

Unified Diff: Source/core/layout/LayoutTreeAsText.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/LayoutTextFragment.cpp ('k') | Source/core/layout/LayoutWordBreak.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutTreeAsText.cpp
diff --git a/Source/core/layout/LayoutTreeAsText.cpp b/Source/core/layout/LayoutTreeAsText.cpp
index 9ca16d78958352f97a294de65531302e083e84ba..e5d86d6c1e60f92ddf7011e82da1cac61dc299f9 100644
--- a/Source/core/layout/LayoutTreeAsText.cpp
+++ b/Source/core/layout/LayoutTreeAsText.cpp
@@ -189,7 +189,7 @@ void LayoutTreeAsText::writeLayoutObject(TextStream& ts, const LayoutObject& o,
if (o.isText()) {
// FIXME: Would be better to dump the bounding box x and y rather than the first run's x and y, but that would involve updating
// many test results.
- const RenderText& text = toRenderText(o);
+ const LayoutText& text = toLayoutText(o);
IntRect linesBox = text.linesBoundingBox();
r = LayoutRect(IntRect(text.firstRunX(), text.firstRunY(), linesBox.width(), linesBox.height()));
if (adjustForTableCells && !text.firstTextBox())
@@ -404,7 +404,7 @@ void LayoutTreeAsText::writeLayoutObject(TextStream& ts, const LayoutObject& o,
}
}
-static void writeTextRun(TextStream& ts, const RenderText& o, const InlineTextBox& run)
+static void writeTextRun(TextStream& ts, const LayoutText& o, const InlineTextBox& run)
{
// FIXME: For now use an "enclosingIntRect" model for x, y and logicalWidth, although this makes it harder
// to detect any changes caused by the conversion to floating point. :(
@@ -470,7 +470,7 @@ void write(TextStream& ts, const LayoutObject& o, int indent, LayoutAsTextBehavi
ts << "\n";
if (o.isText() && !o.isBR()) {
- const RenderText& text = toRenderText(o);
+ const LayoutText& text = toLayoutText(o);
for (InlineTextBox* box = text.firstTextBox(); box; box = box->nextTextBox()) {
writeIndent(ts, indent + 1);
writeTextRun(ts, text, *box);
@@ -752,7 +752,7 @@ static void writeCounterValuesFromChildren(TextStream& stream, LayoutObject* par
if (!isFirstCounter)
stream << " ";
isFirstCounter = false;
- String str(toRenderText(child)->text());
+ String str(toLayoutText(child)->text());
stream << str;
}
}
« no previous file with comments | « Source/core/layout/LayoutTextFragment.cpp ('k') | Source/core/layout/LayoutWordBreak.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698