RESOLVED FIXED 157871
Make LayoutUnit::operator bool() explicit.
https://bugs.webkit.org/show_bug.cgi?id=157871
Summary Make LayoutUnit::operator bool() explicit.
zalan
Reported 2016-05-18 16:26:44 PDT
This is in preparation to get LayoutUnit operator int() removed.
Attachments
Patch (2.19 KB, patch)
2016-05-18 16:29 PDT, zalan
no flags
Patch (2.26 KB, patch)
2016-05-18 18:48 PDT, zalan
no flags
zalan
Comment 1 2016-05-18 16:29:21 PDT
Simon Fraser (smfr)
Comment 2 2016-05-18 16:48:03 PDT
Comment on attachment 279314 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=279314&action=review > Source/WebCore/rendering/RenderView.cpp:280 > + state.m_isPaginated = !!state.m_pageLogicalHeight; I really think != 0 is better in these situations, and damn the style checker.
zalan
Comment 3 2016-05-18 17:01:41 PDT
(In reply to comment #2) > Comment on attachment 279314 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=279314&action=review > > > Source/WebCore/rendering/RenderView.cpp:280 > > + state.m_isPaginated = !!state.m_pageLogicalHeight; > > I really think != 0 is better in these situations, and damn the style > checker. Agree! It might even be more correct to check if state.m_pageLogicalHeight > 0
zalan
Comment 4 2016-05-18 18:48:52 PDT
WebKit Commit Bot
Comment 5 2016-05-18 20:10:42 PDT
Comment on attachment 279335 [details] Patch Clearing flags on attachment: 279335 Committed r201124: <http://trac.webkit.org/changeset/201124>
WebKit Commit Bot
Comment 6 2016-05-18 20:10:47 PDT
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.