Index: Source/web/WebSurroundingText.cpp |
diff --git a/Source/web/WebSurroundingText.cpp b/Source/web/WebSurroundingText.cpp |
index 54a2f7a1030fdff446f1a346d967e88d73cd4273..2715cf57e0d84c687fffc9fb7bda3313ef2a001e 100644 |
--- a/Source/web/WebSurroundingText.cpp |
+++ b/Source/web/WebSurroundingText.cpp |
@@ -45,7 +45,7 @@ void WebSurroundingText::initialize(const WebNode& webNode, const WebPoint& node |
if (!node || !node->renderer()) |
return; |
- m_private.reset(new SurroundingText(VisiblePosition(node->renderer()->positionForPoint(static_cast<IntPoint>(nodePoint))), maxLength)); |
+ m_private.reset(new SurroundingText(VisiblePosition(node->renderer()->positionForPoint(static_cast<IntPoint>(nodePoint))).deepEquivalent().parentAnchoredEquivalent(), maxLength)); |
} |
WebString WebSurroundingText::textContent() const |