Index: Source/core/testing/Internals.cpp |
diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp |
index 8bdd33bf65ab08aa89ff282a950ee781b2a7069f..da42179ad61ee993fdae331ca42010f65290dfba 100644 |
--- a/Source/core/testing/Internals.cpp |
+++ b/Source/core/testing/Internals.cpp |
@@ -2318,7 +2318,7 @@ String Internals::textSurroundingNode(Node* node, int x, int y, unsigned long ma |
if (!node || !node->layoutObject()) |
return String(); |
blink::WebPoint point(x, y); |
- SurroundingText surroundingText(VisiblePosition(node->layoutObject()->positionForPoint(static_cast<IntPoint>(point))).deepEquivalent().parentAnchoredEquivalent(), maxLength); |
+ SurroundingText surroundingText(visiblePositionOf(node->layoutObject()->positionForPoint(static_cast<IntPoint>(point))).deepEquivalent().parentAnchoredEquivalent(), maxLength); |
return surroundingText.content(); |
} |