| Index: Source/core/testing/Internals.cpp
|
| diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp
|
| index eb48a0c2f7d3ad6bb64d350b5536b3d8d0067ee8..598b6fa9edbb27c4cf212e3ff209bf0dacf287f7 100644
|
| --- a/Source/core/testing/Internals.cpp
|
| +++ b/Source/core/testing/Internals.cpp
|
| @@ -2339,7 +2339,7 @@ String Internals::textSurroundingNode(Node* node, int x, int y, unsigned long ma
|
| if (!node)
|
| return String();
|
| blink::WebPoint point(x, y);
|
| - SurroundingText surroundingText(VisiblePosition(node->renderer()->positionForPoint(static_cast<IntPoint>(point))), maxLength);
|
| + SurroundingText surroundingText(node->renderer()->positionForPoint(static_cast<IntPoint>(point)).position(), maxLength);
|
| return surroundingText.content();
|
| }
|
|
|
|
|