Index: Source/core/dom/Range.cpp |
diff --git a/Source/core/dom/Range.cpp b/Source/core/dom/Range.cpp |
index 3e56d9b4e1893ca8eb1378af080aaa09a1bd14c8..6df09014175cf654ddad1eb8d39b7fd4496e95b6 100644 |
--- a/Source/core/dom/Range.cpp |
+++ b/Source/core/dom/Range.cpp |
@@ -1659,14 +1659,13 @@ void Range::getBorderAndTextQuads(Vector<FloatQuad>& quads) const |
} |
} |
} else if (node->isTextNode()) { |
- if (RenderObject* renderer = toText(node)->renderer()) { |
- RenderText& renderText = toRenderText(*renderer); |
+ if (RenderText* renderText = toText(node)->renderer()) { |
int startOffset = (node == startContainer) ? m_start.offset() : 0; |
int endOffset = (node == endContainer) ? m_end.offset() : INT_MAX; |
Vector<FloatQuad> textQuads; |
- renderText.absoluteQuadsForRange(textQuads, startOffset, endOffset); |
- m_ownerDocument->adjustFloatQuadsForScrollAndAbsoluteZoom(textQuads, renderText); |
+ renderText->absoluteQuadsForRange(textQuads, startOffset, endOffset); |
+ m_ownerDocument->adjustFloatQuadsForScrollAndAbsoluteZoom(textQuads, *renderText); |
quads.appendVector(textQuads); |
} |