| Index: Source/web/WebSurroundingText.cpp
|
| diff --git a/Source/web/WebSurroundingText.cpp b/Source/web/WebSurroundingText.cpp
|
| index 07eaf3ff9346926a0317820aaa0779d74e8f161d..4cae36734e2f96f9a9a4a151415ba6e4fa0896e7 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(visiblePositionOf(node->layoutObject()->positionForPoint(static_cast<IntPoint>(nodePoint))).deepEquivalent().parentAnchoredEquivalent(), maxLength));
|
| + m_private.reset(new SurroundingText(createVisiblePosition(node->layoutObject()->positionForPoint(static_cast<IntPoint>(nodePoint))).deepEquivalent().parentAnchoredEquivalent(), maxLength));
|
| }
|
|
|
| void WebSurroundingText::initialize(const WebRange& webRange, size_t maxLength)
|
|
|