RESOLVED FIXED 185458
Use StyleColor::Options in more places
https://bugs.webkit.org/show_bug.cgi?id=185458
Summary Use StyleColor::Options in more places
Timothy Hatcher
Reported 2018-05-08 16:56:17 PDT
Using StyleColor::Options will avoid some confusing bools. rdar://problem/39853798
Attachments
Patch (28.31 KB, patch)
2018-05-08 16:59 PDT, Timothy Hatcher
no flags
Patch (29.89 KB, patch)
2018-05-08 17:15 PDT, Timothy Hatcher
no flags
Patch (31.96 KB, patch)
2018-05-08 19:31 PDT, Timothy Hatcher
no flags
Timothy Hatcher
Comment 1 2018-05-08 16:59:39 PDT
Megan Gardner
Comment 2 2018-05-08 17:12:01 PDT
Comment on attachment 339903 [details] Patch R+ from me as well
Timothy Hatcher
Comment 3 2018-05-08 17:15:33 PDT
Simon Fraser (smfr)
Comment 4 2018-05-08 17:18:33 PDT
Comment on attachment 339906 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=339906&action=review > Source/WebCore/dom/Document.h:548 > + bool defaultAppearance() const; This function name is inscrutable. It sounds like it should return an "appearance" thing but returns a bool?
Timothy Hatcher
Comment 5 2018-05-08 17:23:51 PDT
(In reply to Simon Fraser (smfr) from comment #4) > Comment on attachment 339906 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=339906&action=review > > > Source/WebCore/dom/Document.h:548 > > + bool defaultAppearance() const; > > This function name is inscrutable. It sounds like it should return an > "appearance" thing but returns a bool? This matches the name in other parts of the code. We should rename this everywhere in a separate step.
Brent Fulgham
Comment 6 2018-05-08 17:29:37 PDT
Comment on attachment 339906 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=339906&action=review > Source/WebCore/platform/mac/LocalDefaultSystemAppearance.mm:51 > + [NSAppearance setCurrentAppearance:m_savedSystemAppearance.get()]; We should be careful these calls are not happening in the WebContent process. We are locking down CGSWindowServer access, which may make these calls fail. They should be messaged back and forth to the UIProcess.
Tim Horton
Comment 7 2018-05-08 17:32:28 PDT
(In reply to Brent Fulgham from comment #6) > Comment on attachment 339906 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=339906&action=review > > > Source/WebCore/platform/mac/LocalDefaultSystemAppearance.mm:51 > > + [NSAppearance setCurrentAppearance:m_savedSystemAppearance.get()]; > > We should be careful these calls are not happening in the WebContent > process. We are locking down CGSWindowServer access, which may make these > calls fail. They should be messaged back and forth to the UIProcess. Not accurate in this case.
Timothy Hatcher
Comment 8 2018-05-08 19:31:31 PDT
WebKit Commit Bot
Comment 9 2018-05-09 08:17:14 PDT
Comment on attachment 339920 [details] Patch Clearing flags on attachment: 339920 Committed r231557: <https://trac.webkit.org/changeset/231557>
WebKit Commit Bot
Comment 10 2018-05-09 08:17:16 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 11 2018-05-09 08:18:22 PDT
Note You need to log in before you can comment on or make changes to this bug.