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

Unified Diff: Source/core/editing/VisibleUnits.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/editing/VisibleUnits.cpp
diff --git a/Source/core/editing/VisibleUnits.cpp b/Source/core/editing/VisibleUnits.cpp
index 589dfb138473916c1dd0a46af6c5c1e9e79b0866..8404be85f7ba9b73ff9493250aa8b8c826e1dec9 100644
--- a/Source/core/editing/VisibleUnits.cpp
+++ b/Source/core/editing/VisibleUnits.cpp
@@ -1124,11 +1124,11 @@ VisiblePosition startOfParagraph(const VisiblePosition& c, EditingBoundaryCrossi
if (r->isBR() || isBlock(n))
break;
- if (r->isText() && toRenderText(r)->renderedTextLength()) {
+ if (r->isText() && toLayoutText(r)->renderedTextLength()) {
ASSERT_WITH_SECURITY_IMPLICATION(n->isTextNode());
type = Position::PositionIsOffsetInAnchor;
if (style->preserveNewline()) {
- RenderText* text = toRenderText(r);
+ LayoutText* text = toLayoutText(r);
int i = text->textLength();
int o = offset;
if (n == startNode && o < i)
@@ -1204,12 +1204,12 @@ VisiblePosition endOfParagraph(const VisiblePosition &c, EditingBoundaryCrossing
break;
// FIXME: We avoid returning a position where the renderer can't accept the caret.
- if (r->isText() && toRenderText(r)->renderedTextLength()) {
+ if (r->isText() && toLayoutText(r)->renderedTextLength()) {
ASSERT_WITH_SECURITY_IMPLICATION(n->isTextNode());
- int length = toRenderText(r)->textLength();
+ int length = toLayoutText(r)->textLength();
type = Position::PositionIsOffsetInAnchor;
if (style->preserveNewline()) {
- RenderText* text = toRenderText(r);
+ LayoutText* text = toLayoutText(r);
int o = n == startNode ? offset : 0;
for (int i = o; i < length; ++i) {
if ((*text)[i] == '\n')

Powered by Google App Engine
This is Rietveld 408576698