Hide the find indicator when starting a swipe
authorandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 14 Oct 2014 22:31:24 +0000 (22:31 +0000)
committerandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 14 Oct 2014 22:31:24 +0000 (22:31 +0000)
https://bugs.webkit.org/show_bug.cgi?id=137711

Reviewed by Tim Horton.

* UIProcess/mac/PageClientImpl.mm:
(WebKit::PageClientImpl::navigationGestureDidBegin):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@174705 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit2/ChangeLog
Source/WebKit2/UIProcess/mac/PageClientImpl.mm

index 8b52436..faac7d4 100644 (file)
@@ -1,3 +1,13 @@
+2014-10-14  Anders Carlsson  <andersca@apple.com>
+
+        Hide the find indicator when starting a swipe
+        https://bugs.webkit.org/show_bug.cgi?id=137711
+
+        Reviewed by Tim Horton.
+
+        * UIProcess/mac/PageClientImpl.mm:
+        (WebKit::PageClientImpl::navigationGestureDidBegin):
+
 2014-10-14  Chris Dumez  <cdumez@apple.com>
 
         Use is<>() / downcast<>() for RenderImage
index 68102c1..dbd8309 100644 (file)
@@ -684,6 +684,9 @@ void PageClientImpl::beganExitFullScreen(const IntRect& initialFrame, const IntR
 
 void PageClientImpl::navigationGestureDidBegin()
 {
+    // Hide the finde indicator if it's visible.
+    setFindIndicator(nullptr, false, false);
+
 #if WK_API_ENABLED
     if (m_webView)
         NavigationState::fromWebPage(*m_webView->_page).navigationGestureDidBegin();