RESOLVED FIXED 186015
Modernize RenderStyleConstants.h - Part 3
https://bugs.webkit.org/show_bug.cgi?id=186015
Summary Modernize RenderStyleConstants.h - Part 3
Sam Weinig
Reported 2018-05-26 12:55:13 PDT
Modernize RenderStyleConstants.h - Part 3
Attachments
Patch (97.44 KB, patch)
2018-05-26 13:05 PDT, Sam Weinig
no flags
Patch (99.00 KB, patch)
2018-05-26 14:05 PDT, Sam Weinig
no flags
Archive of layout-test-results from ews117 for mac-sierra (382.90 KB, application/zip)
2018-05-26 15:10 PDT, EWS Watchlist
no flags
Patch (98.93 KB, patch)
2018-05-26 17:35 PDT, Sam Weinig
no flags
Archive of layout-test-results from ews112 for mac-sierra (3.13 MB, application/zip)
2018-05-26 19:24 PDT, EWS Watchlist
no flags
Patch (102.98 KB, patch)
2018-05-26 19:34 PDT, Sam Weinig
no flags
Patch (102.94 KB, patch)
2018-05-27 15:34 PDT, Sam Weinig
no flags
Sam Weinig
Comment 1 2018-05-26 13:05:08 PDT Comment hidden (obsolete)
EWS Watchlist
Comment 2 2018-05-26 13:06:51 PDT Comment hidden (obsolete)
Sam Weinig
Comment 3 2018-05-26 14:05:16 PDT Comment hidden (obsolete)
EWS Watchlist
Comment 4 2018-05-26 14:07:48 PDT Comment hidden (obsolete)
EWS Watchlist
Comment 5 2018-05-26 15:10:22 PDT Comment hidden (obsolete)
EWS Watchlist
Comment 6 2018-05-26 15:10:23 PDT Comment hidden (obsolete)
Sam Weinig
Comment 7 2018-05-26 17:35:21 PDT Comment hidden (obsolete)
Sam Weinig
Comment 8 2018-05-26 17:38:05 PDT
The fact that you can't construct an OptionSet with a enum value that happens to be 0 is a bit annoying. I'm not clear on the reasoning for it.
EWS Watchlist
Comment 9 2018-05-26 17:38:29 PDT Comment hidden (obsolete)
EWS Watchlist
Comment 10 2018-05-26 19:24:41 PDT Comment hidden (obsolete)
EWS Watchlist
Comment 11 2018-05-26 19:24:42 PDT Comment hidden (obsolete)
Sam Weinig
Comment 12 2018-05-26 19:34:31 PDT
EWS Watchlist
Comment 13 2018-05-26 19:35:59 PDT Comment hidden (obsolete)
Yusuke Suzuki
Comment 14 2018-05-27 07:36:26 PDT
Comment on attachment 341416 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=341416&action=review r=me with comments. > Source/WebCore/css/CSSComputedStyleDeclaration.cpp:-1839 > - if (speakAs & SpeakNormal) Since `SpeakNormal` was 0 previously, I think this path was never executed (speakAs & SpeakNormal is always zero). Is the following code correct? > Source/WebCore/css/CSSLineBoxContainValue.h:35 > +enum LineBoxContainFlags { Should we change this to `enum class` too?
Sam Weinig
Comment 15 2018-05-27 15:34:26 PDT
EWS Watchlist
Comment 16 2018-05-27 15:37:27 PDT
Attachment 341432 [details] did not pass style-queue: ERROR: Source/WebCore/rendering/TextDecorationPainter.cpp:252: Code inside a namespace should not be indented. [whitespace/indent] [4] Total errors found: 1 in 39 files If any of these errors are false positives, please file a bug against check-webkit-style.
Sam Weinig
Comment 17 2018-05-27 17:22:32 PDT
(In reply to Yusuke Suzuki from comment #14) > Comment on attachment 341416 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=341416&action=review > > r=me with comments. > > > Source/WebCore/css/CSSComputedStyleDeclaration.cpp:-1839 > > - if (speakAs & SpeakNormal) > > Since `SpeakNormal` was 0 previously, I think this path was never executed > (speakAs & SpeakNormal is always zero). Is the following code correct? That code is funny. The added code doesn't actually change behavior, because the old code ended up doing the same thing at the end of the chain of if-statements if the list was empty. Anyway, no reason to have duplicate functionality so I removed that initial if. > > > Source/WebCore/css/CSSLineBoxContainValue.h:35 > > +enum LineBoxContainFlags { > > Should we change this to `enum class` too? Yeah, I'll get there.
WebKit Commit Bot
Comment 18 2018-05-27 17:49:27 PDT
Comment on attachment 341432 [details] Patch Clearing flags on attachment: 341432 Committed r232229: <https://trac.webkit.org/changeset/232229>
WebKit Commit Bot
Comment 19 2018-05-27 17:49:29 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 20 2018-05-27 17:50:27 PDT
Note You need to log in before you can comment on or make changes to this bug.