diff options
author | Victoria Lease <violets@google.com> | 2012-02-22 10:31:19 -0800 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-02-22 10:31:19 -0800 |
commit | 67e33c4976d10fa2cb6fc55455dc4ba1acf4395e (patch) | |
tree | cd828e74e6c52694573ef9fe99a55955ad6ee2f8 | |
parent | 41e58683e2ccc7c1928deedfc2e3a9be3d58ad5e (diff) | |
parent | b30a0130ada873a717efc22c14ef29cd6d7d9ab7 (diff) | |
download | external_webkit-67e33c4976d10fa2cb6fc55455dc4ba1acf4395e.zip external_webkit-67e33c4976d10fa2cb6fc55455dc4ba1acf4395e.tar.gz external_webkit-67e33c4976d10fa2cb6fc55455dc4ba1acf4395e.tar.bz2 |
Merge "scroll page to current match during find-on-page"
-rw-r--r-- | Source/WebKit/android/jni/WebViewCore.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/WebKit/android/jni/WebViewCore.cpp b/Source/WebKit/android/jni/WebViewCore.cpp index 4efe0d5..c53f3fb 100644 --- a/Source/WebKit/android/jni/WebViewCore.cpp +++ b/Source/WebKit/android/jni/WebViewCore.cpp @@ -4360,6 +4360,8 @@ void WebViewCore::findNextOnPage(bool forward) m_activeMatch = selection.firstRange(); m_mainFrame->document()->markers()->setMarkersActive( m_activeMatch.get(), true); + m_mainFrame->selection()->revealSelection( + ScrollAlignment::alignCenterIfNeeded, true); } updateMatchCount(); } |