WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
135918
[Services with UI] Use a longer delay duration for editable content
https://bugs.webkit.org/show_bug.cgi?id=135918
Summary
[Services with UI] Use a longer delay duration for editable content
Enrica Casucci
Reported
2014-08-13 17:20:17 PDT
Use a longer delay before showing the service UI. <
rdar://problem/17998929
>
Attachments
Patch
(1.70 KB, patch)
2014-08-13 17:22 PDT
,
Enrica Casucci
thorton
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Enrica Casucci
Comment 1
2014-08-13 17:22:46 PDT
Created
attachment 236568
[details]
Patch
Tim Horton
Comment 2
2014-08-13 17:25:57 PDT
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?
Enrica Casucci
Comment 3
2014-08-13 17:33:29 PDT
(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.
Enrica Casucci
Comment 4
2014-08-13 17:40:09 PDT
Committed revision 172546.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug