RESOLVED FIXED 192518
WKWebView should support custom tintColor
https://bugs.webkit.org/show_bug.cgi?id=192518
Summary WKWebView should support custom tintColor
Tim Horton
Reported 2018-12-07 15:01:11 PST
WKWebView should support custom tintColor
Attachments
Patch (7.35 KB, patch)
2018-12-07 15:03 PST, Tim Horton
no flags
Patch (7.34 KB, patch)
2018-12-07 15:05 PST, Tim Horton
no flags
Tim Horton
Comment 1 2018-12-07 15:03:11 PST
Tim Horton
Comment 2 2018-12-07 15:03:21 PST
Tim Horton
Comment 3 2018-12-07 15:05:29 PST
Simon Fraser (smfr)
Comment 4 2018-12-07 17:41:02 PST
Comment on attachment 356843 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=356843&action=review > Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm:2511 > + if (!_page->editorState().isMissingPostLayoutData) { I hate isMissingPostLayoutData. Why is it a thing? > Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm:2513 > + if (caretColor.isValid()) Is it OK if caretColor is transparent black?
Megan Gardner
Comment 5 2018-12-07 17:57:45 PST
Comment on attachment 356843 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=356843&action=review > Tools/TestWebKitAPI/ios/UIKitSPI.h:71 > +@property (nonatomic, readonly) UIColor *selectionBarColor; Why don't we test selectionHighlightColor as well? Is that not testable?
Tim Horton
Comment 6 2018-12-08 00:49:59 PST
(In reply to Simon Fraser (smfr) from comment #4) > Comment on attachment 356843 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=356843&action=review > > > Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm:2511 > > + if (!_page->editorState().isMissingPostLayoutData) { > > I hate isMissingPostLayoutData. Why is it a thing? I don’t know. I blame whsieh. > > Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm:2513 > > + if (caretColor.isValid()) > > Is it OK if caretColor is transparent black? Yes. (In reply to Megan Gardner from comment #5) > Comment on attachment 356843 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=356843&action=review > > > Tools/TestWebKitAPI/ios/UIKitSPI.h:71 > > +@property (nonatomic, readonly) UIColor *selectionBarColor; > > Why don't we test selectionHighlightColor as well? Is that not testable? It is, but it’s actually transformed a bit by UIKit so it’s not a trivial equality test. I decided I didn’t want my test to depend on UIKit internal implementation details.
Wenson Hsieh
Comment 7 2018-12-08 00:52:57 PST
Comment on attachment 356843 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=356843&action=review >>> Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm:2511 >>> + if (!_page->editorState().isMissingPostLayoutData) { >> >> I hate isMissingPostLayoutData. Why is it a thing? > > I don’t know. I blame whsieh. See: <https://trac.webkit.org/changeset/182603/webkit>
WebKit Commit Bot
Comment 8 2018-12-10 01:05:08 PST
Comment on attachment 356843 [details] Patch Clearing flags on attachment: 356843 Committed r239026: <https://trac.webkit.org/changeset/239026>
WebKit Commit Bot
Comment 9 2018-12-10 01:05:10 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.