Chromium Code Reviews| Index: third_party/WebKit/Source/web/WebSurroundingText.cpp |
| diff --git a/third_party/WebKit/Source/web/WebSurroundingText.cpp b/third_party/WebKit/Source/web/WebSurroundingText.cpp |
| index cdd758ef53c6bfbda039d7bd194a1c21bdae44d2..0ecd970dd407a7f6bb2cd220843beee4e755199f 100644 |
| --- a/third_party/WebKit/Source/web/WebSurroundingText.cpp |
| +++ b/third_party/WebKit/Source/web/WebSurroundingText.cpp |
| @@ -52,7 +52,7 @@ void WebSurroundingText::initialize(const WebNode& webNode, const WebPoint& node |
| if (!node || !node->layoutObject()) |
|
yosin_UTC9
2016/09/16 02:01:21
We should update layout before using |Node::layout
|
| return; |
| - m_private.reset(new SurroundingText(createVisiblePosition(node->layoutObject()->positionForPoint(static_cast<IntPoint>(nodePoint))).deepEquivalent().parentAnchoredEquivalent(), maxLength)); |
| + m_private.reset(new SurroundingText(createVisiblePositionDeprecated(node->layoutObject()->positionForPoint(static_cast<IntPoint>(nodePoint))).deepEquivalent().parentAnchoredEquivalent(), maxLength)); |
| } |
| void WebSurroundingText::initializeFromCurrentSelection(WebLocalFrame* frame, size_t maxLength) |