RESOLVED FIXED 224044
Cleanup shouldComputeLogicalWidthFromAspectRatio and shouldComputeLogicalWidthFromAspectRatioAndInsets
https://bugs.webkit.org/show_bug.cgi?id=224044
Summary Cleanup shouldComputeLogicalWidthFromAspectRatio and shouldComputeLogicalWidt...
zalan
Reported 2021-04-01 05:03:13 PDT
turn if (foo) return true; return false; into return !foo;
Attachments
Patch (2.69 KB, patch)
2021-04-01 05:08 PDT, zalan
no flags
zalan
Comment 1 2021-04-01 05:08:16 PDT
Antti Koivisto
Comment 2 2021-04-01 05:10:22 PDT
Comment on attachment 424886 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=424886&action=review > Source/WebCore/rendering/RenderBox.cpp:5130 > + return style().width().isAuto() && style().height().isAuto() && !style().logicalTop().isAuto() && !style().logicalBottom().isAuto() && (style().logicalLeft().isAuto() || style().logicalRight().isAuto()); I'd probably split this into multiple returns.
zalan
Comment 3 2021-04-01 05:22:57 PDT
(In reply to Antti Koivisto from comment #2) > Comment on attachment 424886 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=424886&action=review > > > Source/WebCore/rendering/RenderBox.cpp:5130 > > + return style().width().isAuto() && style().height().isAuto() && !style().logicalTop().isAuto() && !style().logicalBottom().isAuto() && (style().logicalLeft().isAuto() || style().logicalRight().isAuto()); > > I'd probably split this into multiple returns. Good idea. I am still trying to understand what this logic is in reference to. will do in a separate patch.
zalan
Comment 4 2021-04-01 07:34:26 PDT
(In reply to zalan from comment #0) > turn > if (foo) > return true; > return false; > > into > return !foo; should read "return foo;"
EWS
Comment 5 2021-04-01 07:47:57 PDT
Committed r275357: <https://commits.webkit.org/r275357> All reviewed patches have been landed. Closing bug and clearing flags on attachment 424886 [details].
Radar WebKit Bug Importer
Comment 6 2021-04-01 07:48:14 PDT
Note You need to log in before you can comment on or make changes to this bug.