Index: Source/core/dom/Range.cpp |
diff --git a/Source/core/dom/Range.cpp b/Source/core/dom/Range.cpp |
index 5b2d161cce657891427440ca83e038f4aaf3e6df..db24f8986e1bc58999d14d2f4dcb43612704a35e 100644 |
--- a/Source/core/dom/Range.cpp |
+++ b/Source/core/dom/Range.cpp |
@@ -1861,19 +1861,19 @@ void Range::getBorderAndTextQuads(Vector<FloatQuad>& quads) const |
if (RenderBoxModelObject* renderBoxModelObject = toElement(node)->renderBoxModelObject()) { |
Vector<FloatQuad> elementQuads; |
renderBoxModelObject->absoluteQuads(elementQuads); |
- m_ownerDocument->adjustFloatQuadsForScrollAndAbsoluteZoom(elementQuads, renderBoxModelObject); |
+ m_ownerDocument->adjustFloatQuadsForScrollAndAbsoluteZoom(elementQuads, *renderBoxModelObject); |
quads.append(elementQuads); |
} |
} |
} else if (node->isTextNode()) { |
if (RenderObject* renderer = toText(node)->renderer()) { |
- RenderText* renderText = toRenderText(renderer); |
+ RenderText& renderText = toRenderText(*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); |
+ renderText.absoluteQuadsForRange(textQuads, startOffset, endOffset); |
m_ownerDocument->adjustFloatQuadsForScrollAndAbsoluteZoom(textQuads, renderText); |
quads.append(textQuads); |