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

Unified Diff: Source/core/layout/LayoutInline.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/LayoutCounter.cpp ('k') | Source/core/layout/LayoutListBox.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutInline.cpp
diff --git a/Source/core/layout/LayoutInline.cpp b/Source/core/layout/LayoutInline.cpp
index 99a9bef8993247c59a3ebffa5b1e1335dd57f51b..a80ccf803434e0956a6aed4c30211bd2fd4f3c82 100644
--- a/Source/core/layout/LayoutInline.cpp
+++ b/Source/core/layout/LayoutInline.cpp
@@ -260,7 +260,7 @@ LayoutRect LayoutInline::localCaretRect(InlineBox* inlineBox, int, LayoutUnit* e
if (firstChild()) {
// This condition is possible if the LayoutInline is at an editing boundary,
// i.e. the VisiblePosition is:
- // <LayoutInline editingBoundary=true>|<RenderText> </RenderText></LayoutInline>
+ // <LayoutInline editingBoundary=true>|<LayoutText> </LayoutText></LayoutInline>
// FIXME: need to figure out how to make this return a valid rect, note that
// there are no line boxes created in the above case.
return LayoutRect();
@@ -619,7 +619,7 @@ void LayoutInline::generateCulledLineBoxRects(GeneratorContext& yield, const Lay
}
}
} else if (curr->isText()) {
- RenderText* currText = toRenderText(curr);
+ LayoutText* currText = toLayoutText(curr);
for (InlineTextBox* childText = currText->firstTextBox(); childText; childText = childText->nextTextBox()) {
RootInlineBox& rootBox = childText->root();
int logicalTop = rootBox.logicalTop() + (rootBox.renderer().style(rootBox.isFirstLineStyle())->font().fontMetrics().ascent() - container->style(rootBox.isFirstLineStyle())->font().fontMetrics().ascent());
@@ -926,7 +926,7 @@ InlineBox* LayoutInline::culledInlineFirstLineBox() const
if (result)
return result;
} else if (curr->isText()) {
- RenderText* currText = toRenderText(curr);
+ LayoutText* currText = toLayoutText(curr);
if (currText->firstTextBox())
return currText->firstTextBox();
}
@@ -950,7 +950,7 @@ InlineBox* LayoutInline::culledInlineLastLineBox() const
if (result)
return result;
} else if (curr->isText()) {
- RenderText* currText = toRenderText(curr);
+ LayoutText* currText = toLayoutText(curr);
if (currText->lastTextBox())
return currText->lastTextBox();
}
@@ -992,7 +992,7 @@ LayoutRect LayoutInline::culledInlineVisualOverflowBoundingBox() const
} else if (curr->isText()) {
// FIXME; Overflow from text boxes is lost. We will need to cache this information in
// InlineTextBoxes.
- RenderText* currText = toRenderText(curr);
+ LayoutText* currText = toLayoutText(curr);
result.uniteIfNonZero(currText->linesVisualOverflowBoundingBox());
}
}
@@ -1288,7 +1288,7 @@ void LayoutInline::dirtyLineBoxes(bool fullLayout)
for (InlineFlowBox* childLine = currInline->firstLineBox(); childLine; childLine = childLine->nextLineBox())
childLine->root().markDirty();
} else if (curr->isText()) {
- RenderText* currText = toRenderText(curr);
+ LayoutText* currText = toLayoutText(curr);
for (InlineTextBox* childText = currText->firstTextBox(); childText; childText = childText->nextTextBox())
childText->root().markDirty();
}
« no previous file with comments | « Source/core/layout/LayoutCounter.cpp ('k') | Source/core/layout/LayoutListBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698