| Index: Source/web/WebSurroundingText.cpp
|
| diff --git a/Source/web/WebSurroundingText.cpp b/Source/web/WebSurroundingText.cpp
|
| index 54a2f7a1030fdff446f1a346d967e88d73cd4273..6121370cc386030381994c06acdbcd253d77e901 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(node->renderer()->positionForPoint(static_cast<IntPoint>(nodePoint)).position(), maxLength));
|
| }
|
|
|
| WebString WebSurroundingText::textContent() const
|
|
|