Chromium Code Reviews| Index: Source/web/WebSurroundingText.cpp |
| diff --git a/Source/web/WebSurroundingText.cpp b/Source/web/WebSurroundingText.cpp |
| index 54a2f7a1030fdff446f1a346d967e88d73cd4273..6121370cc386030381994c06acdbcd253d77e901 100644 |
| --- a/Source/web/WebSurroundingText.cpp |
| +++ b/Source/web/WebSurroundingText.cpp |
| @@ -45,7 +45,7 @@ void WebSurroundingText::initialize(const WebNode& webNode, const WebPoint& node |
| if (!node || !node->renderer()) |
| return; |
| - m_private.reset(new SurroundingText(VisiblePosition(node->renderer()->positionForPoint(static_cast<IntPoint>(nodePoint))), maxLength)); |
| + m_private.reset(new SurroundingText(node->renderer()->positionForPoint(static_cast<IntPoint>(nodePoint)).position(), maxLength)); |
|
mlamouri (slow - plz ping)
2014/06/04 14:56:39
If I manually test this on Android, it is crashing
|
| } |
| WebString WebSurroundingText::textContent() const |