Chromium Code Reviews| Index: third_party/WebKit/Source/core/testing/Internals.cpp |
| diff --git a/third_party/WebKit/Source/core/testing/Internals.cpp b/third_party/WebKit/Source/core/testing/Internals.cpp |
| index d1c86963cca7d3e5375da5107164133beaa3df5e..fb183140c955487eff1b626c3c2d5dcec8fc1184 100644 |
| --- a/third_party/WebKit/Source/core/testing/Internals.cpp |
| +++ b/third_party/WebKit/Source/core/testing/Internals.cpp |
| @@ -2401,7 +2401,7 @@ String Internals::textSurroundingNode(Node* node, int x, int y, unsigned long ma |
| if (!node || !node->layoutObject()) |
|
yosin_UTC9
2016/09/16 02:01:21
We should update layout before using |Node::layout
|
| return String(); |
| blink::WebPoint point(x, y); |
| - SurroundingText surroundingText(createVisiblePosition(node->layoutObject()->positionForPoint(static_cast<IntPoint>(point))).deepEquivalent().parentAnchoredEquivalent(), maxLength); |
| + SurroundingText surroundingText(createVisiblePositionDeprecated(node->layoutObject()->positionForPoint(static_cast<IntPoint>(point))).deepEquivalent().parentAnchoredEquivalent(), maxLength); |
| return surroundingText.content(); |
| } |