Title: [172546] trunk/Source/WebKit2
Revision
172546
Author
enr...@apple.com
Date
2014-08-13 17:39:28 -0700 (Wed, 13 Aug 2014)

Log Message

[Services with UI] Use a longer delay duration for editable content.
https://bugs.webkit.org/show_bug.cgi?id=135918
<rdar://problem/17998929>

Reviewed by Tim Horton.

Use a 1 second delay for selections in editable content.

* WebProcess/WebPage/mac/ServicesOverlayController.mm:
(WebKit::ServicesOverlayController::remainingTimeUntilHighlightShouldBeShown):

Modified Paths

Diff

Modified: trunk/Source/WebKit2/ChangeLog (172545 => 172546)


--- trunk/Source/WebKit2/ChangeLog	2014-08-14 00:23:58 UTC (rev 172545)
+++ trunk/Source/WebKit2/ChangeLog	2014-08-14 00:39:28 UTC (rev 172546)
@@ -1,3 +1,16 @@
+2014-08-13  Enrica Casucci  <enr...@apple.com>
+
+        [Services with UI] Use a longer delay duration for editable content.
+        https://bugs.webkit.org/show_bug.cgi?id=135918
+        <rdar://problem/17998929>
+
+        Reviewed by Tim Horton.
+
+        Use a 1 second delay for selections in editable content.
+
+        * WebProcess/WebPage/mac/ServicesOverlayController.mm:
+        (WebKit::ServicesOverlayController::remainingTimeUntilHighlightShouldBeShown):
+
 2014-08-13  Mark Rowe  <mr...@apple.com>
 
         <https://webkit.org/b/135911> WebKit should build on Yosemite with the public SDK.

Modified: trunk/Source/WebKit2/WebProcess/WebPage/mac/ServicesOverlayController.mm (172545 => 172546)


--- trunk/Source/WebKit2/WebProcess/WebPage/mac/ServicesOverlayController.mm	2014-08-14 00:23:58 UTC (rev 172545)
+++ trunk/Source/WebKit2/WebProcess/WebPage/mac/ServicesOverlayController.mm	2014-08-14 00:39:28 UTC (rev 172546)
@@ -402,6 +402,8 @@
         return std::chrono::milliseconds::zero();
 
     auto minimumTimeUntilHighlightShouldBeShown = 200_ms;
+    if (m_webPage.corePage()->focusController().focusedOrMainFrame().selection().selection().isContentEditable())
+        minimumTimeUntilHighlightShouldBeShown = 1000_ms;
 
     bool mousePressed = false;
     if (Frame* mainFrame = m_webPage.mainFrame())
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to