| Index: third_party/WebKit/Source/core/editing/Editor.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/Editor.cpp b/third_party/WebKit/Source/core/editing/Editor.cpp
|
| index 6af678809ee7444c042561d29ea0b1235a2638e8..1ea22e3482a0af9a86941fb6fce93e5279d3f7ab 100644
|
| --- a/third_party/WebKit/Source/core/editing/Editor.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/Editor.cpp
|
| @@ -1198,8 +1198,10 @@ PassRefPtrWillBeRawPtr<Range> Editor::findStringAndScrollToVisible(const String&
|
| if (!nextMatch)
|
| return nullptr;
|
|
|
| - nextMatch->firstNode()->layoutObject()->scrollRectToVisible(LayoutRect(nextMatch->boundingBox()),
|
| + Node* firstNode = nextMatch->firstNode();
|
| + firstNode->layoutObject()->scrollRectToVisible(LayoutRect(nextMatch->boundingBox()),
|
| ScrollAlignment::alignCenterIfNeeded, ScrollAlignment::alignCenterIfNeeded, UserScroll);
|
| + firstNode->document().setSequentialFocusNavigationStartingPoint(firstNode);
|
|
|
| return nextMatch.release();
|
| }
|
|
|