Index: Source/web/WebSurroundingText.cpp |
diff --git a/Source/web/WebSurroundingText.cpp b/Source/web/WebSurroundingText.cpp |
index c2e37a303fa9cbd9c41ff032404a0686414a79f1..00f9c63baeb3edb8930391f809e14d24eacbdd95 100644 |
--- a/Source/web/WebSurroundingText.cpp |
+++ b/Source/web/WebSurroundingText.cpp |
@@ -40,10 +40,10 @@ namespace blink { |
void WebSurroundingText::initialize(const WebNode& webNode, const WebPoint& nodePoint, size_t maxLength) |
{ |
const Node* node = webNode.constUnwrap<Node>(); |
- if (!node || !node->renderer()) |
+ if (!node || !node->layoutObject()) |
return; |
- m_private.reset(new SurroundingText(VisiblePosition(node->renderer()->positionForPoint(static_cast<IntPoint>(nodePoint))).deepEquivalent().parentAnchoredEquivalent(), maxLength)); |
+ m_private.reset(new SurroundingText(VisiblePosition(node->layoutObject()->positionForPoint(static_cast<IntPoint>(nodePoint))).deepEquivalent().parentAnchoredEquivalent(), maxLength)); |
} |
void WebSurroundingText::initialize(const WebRange& webRange, size_t maxLength) |