summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictoria Lease <violets@google.com>2012-02-22 10:09:37 -0800
committerVictoria Lease <violets@google.com>2012-02-22 10:09:37 -0800
commitb30a0130ada873a717efc22c14ef29cd6d7d9ab7 (patch)
treefbbbd991a8aa943fd292ca82a867d46d1c2f6bc9
parent66c40fc863939bd103a5256eb48e944508725c53 (diff)
downloadexternal_webkit-b30a0130ada873a717efc22c14ef29cd6d7d9ab7.zip
external_webkit-b30a0130ada873a717efc22c14ef29cd6d7d9ab7.tar.gz
external_webkit-b30a0130ada873a717efc22c14ef29cd6d7d9ab7.tar.bz2
scroll page to current match during find-on-page
Bug: 6044659 Change-Id: I7e6e59b365aec0b01c41cb80e4c342f39142b867
-rw-r--r--Source/WebKit/android/jni/WebViewCore.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/WebKit/android/jni/WebViewCore.cpp b/Source/WebKit/android/jni/WebViewCore.cpp
index a8b8499..d1b1629 100644
--- a/Source/WebKit/android/jni/WebViewCore.cpp
+++ b/Source/WebKit/android/jni/WebViewCore.cpp
@@ -4434,6 +4434,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();
}