| Index: Source/web/WebSurroundingText.cpp
|
| diff --git a/Source/web/WebSurroundingText.cpp b/Source/web/WebSurroundingText.cpp
|
| index 00f9c63baeb3edb8930391f809e14d24eacbdd95..07eaf3ff9346926a0317820aaa0779d74e8f161d 100644
|
| --- a/Source/web/WebSurroundingText.cpp
|
| +++ b/Source/web/WebSurroundingText.cpp
|
| @@ -43,7 +43,7 @@ void WebSurroundingText::initialize(const WebNode& webNode, const WebPoint& node
|
| if (!node || !node->layoutObject())
|
| return;
|
|
|
| - m_private.reset(new SurroundingText(VisiblePosition(node->layoutObject()->positionForPoint(static_cast<IntPoint>(nodePoint))).deepEquivalent().parentAnchoredEquivalent(), maxLength));
|
| + m_private.reset(new SurroundingText(visiblePositionOf(node->layoutObject()->positionForPoint(static_cast<IntPoint>(nodePoint))).deepEquivalent().parentAnchoredEquivalent(), maxLength));
|
| }
|
|
|
| void WebSurroundingText::initialize(const WebRange& webRange, size_t maxLength)
|
|
|