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

Unified Diff: Source/core/dom/Range.cpp

Issue 977113003: Rename renderer() to layoutObject(). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase to master 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/dom/Range.cpp
diff --git a/Source/core/dom/Range.cpp b/Source/core/dom/Range.cpp
index 667caf6034b6ee254d7c57530f09995b3af638fa..b3ce43a8513300c0934d19601d11391979ecc068 100644
--- a/Source/core/dom/Range.cpp
+++ b/Source/core/dom/Range.cpp
@@ -1430,7 +1430,7 @@ void Range::textRects(Vector<IntRect>& rects, bool useSelectionHeight, RangeInFi
Node* stopNode = pastLastNode();
for (Node* node = firstNode(); node != stopNode; node = NodeTraversal::next(*node)) {
- LayoutObject* r = node->renderer();
+ LayoutObject* r = node->layoutObject();
if (!r || !r->isText())
continue;
LayoutText* renderText = toLayoutText(r);
@@ -1458,7 +1458,7 @@ void Range::textQuads(Vector<FloatQuad>& quads, bool useSelectionHeight, RangeIn
Node* stopNode = pastLastNode();
for (Node* node = firstNode(); node != stopNode; node = NodeTraversal::next(*node)) {
- LayoutObject* r = node->renderer();
+ LayoutObject* r = node->layoutObject();
if (!r || !r->isText())
continue;
LayoutText* renderText = toLayoutText(r);
@@ -1735,7 +1735,7 @@ void Range::getBorderAndTextQuads(Vector<FloatQuad>& quads) const
}
}
} else if (node->isTextNode()) {
- if (LayoutText* renderText = toText(node)->renderer()) {
+ if (LayoutText* renderText = toText(node)->layoutObject()) {
int startOffset = (node == startContainer) ? m_start.offset() : 0;
int endOffset = (node == endContainer) ? m_end.offset() : INT_MAX;

Powered by Google App Engine
This is Rietveld 408576698