Use a longer delay before showing the service UI. <rdar://problem/17998929>
Created attachment 236568 [details] Patch
Comment on attachment 236568 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=236568&action=review > Source/WebKit2/WebProcess/WebPage/mac/ServicesOverlayController.mm:408 > + std::chrono::steady_clock::duration minimumTimeUntilHighlightShouldBeShown = m_webPage.corePage()->focusController().focusedOrMainFrame().selection().selection().isContentEditable() ? 1000_ms : 200_ms; This line is crazy long; could we maybe pull the 'isContentEditable' check out onto its own line? Also, could we maybe move the two constants to the top of the file?
(In reply to comment #2) > (From update of attachment 236568 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=236568&action=review > > > Source/WebKit2/WebProcess/WebPage/mac/ServicesOverlayController.mm:408 > > + std::chrono::steady_clock::duration minimumTimeUntilHighlightShouldBeShown = m_webPage.corePage()->focusController().focusedOrMainFrame().selection().selection().isContentEditable() ? 1000_ms : 200_ms; > > This line is crazy long; could we maybe pull the 'isContentEditable' check out onto its own line? Also, could we maybe move the two constants to the top of the file? I can split the line. I prefer not to move the constants since they are only used in this method.
Committed revision 172546.