RESOLVED FIXED 138775
Use TextIndicator instead of the built in Lookup highlight
https://bugs.webkit.org/show_bug.cgi?id=138775
Summary Use TextIndicator instead of the built in Lookup highlight
Tim Horton
Reported 2014-11-16 01:28:03 PST
Use TextIndicator instead of the built in Lookup highlight
Attachments
Patch (43.14 KB, patch)
2014-11-16 01:28 PST, Tim Horton
andersca: review+
Tim Horton
Comment 1 2014-11-16 01:28:39 PST
Tim Horton
Comment 2 2014-11-16 01:29:11 PST
WebKit Commit Bot
Comment 3 2014-11-16 01:31:18 PST
Attachment 241680 [details] did not pass style-queue: ERROR: Source/WebKit2/UIProcess/mac/TextIndicatorWindow.h:52: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit2/UIProcess/mac/TextIndicatorWindow.h:75: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit2/UIProcess/API/mac/WKViewInternal.h:84: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit2/UIProcess/API/mac/WKView.mm:3070: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit2/UIProcess/API/mac/WKView.mm:3085: Missing space inside { }. [whitespace/braces] [5] ERROR: Source/WebKit2/UIProcess/mac/TextIndicatorWindow.mm:123: Extra space before ( in function call [whitespace/parens] [4] Total errors found: 6 in 24 files If any of these errors are false positives, please file a bug against check-webkit-style.
Anders Carlsson
Comment 4 2014-11-16 07:28:12 PST
Comment on attachment 241680 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=241680&action=review > Source/WebKit2/UIProcess/API/mac/WKView.mm:3080 > + _data->_textIndicatorWindow->setTextIndicator(textIndicator, fadeOut, animate, completionHandler); Should WTF::move the completion handler. > Source/WebKit2/UIProcess/mac/TextIndicatorWindow.h:52 > + void setTextIndicator(PassRefPtr<TextIndicator>, bool fadeOut, bool animate, std::function<void ()> animationCompletionHandler); Would be nice to combine fadeOut and animate into a set of flags.
Tim Horton
Comment 5 2014-11-16 12:33:54 PST
(In reply to comment #4) > Comment on attachment 241680 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=241680&action=review > > > Source/WebKit2/UIProcess/API/mac/WKView.mm:3080 > > + _data->_textIndicatorWindow->setTextIndicator(textIndicator, fadeOut, animate, completionHandler); > > Should WTF::move the completion handler. > > > Source/WebKit2/UIProcess/mac/TextIndicatorWindow.h:52 > > + void setTextIndicator(PassRefPtr<TextIndicator>, bool fadeOut, bool animate, std::function<void ()> animationCompletionHandler); > > Would be nice to combine fadeOut and animate into a set of flags. Agreed, especially because "fadeOut" is a less-than-ideal name for what it really does. Not in this patch, though.
Tim Horton
Comment 6 2014-11-16 12:41:38 PST
Tim Horton
Comment 7 2014-11-16 17:57:44 PST
Follow up to stop the crashes in http://trac.webkit.org/changeset/176166.
Note You need to log in before you can comment on or make changes to this bug.