Bug 222976 - Cleanup RenderFlexibleBox
Summary: Cleanup RenderFlexibleBox
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Rob Buis
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-03-09 08:18 PST by Rob Buis
Modified: 2021-03-11 09:58 PST (History)
8 users (show)

See Also:


Attachments
Patch (3.46 KB, patch)
2021-03-09 08:20 PST, Rob Buis
ews-feeder: commit-queue-
Details | Formatted Diff | Diff
Patch (3.48 KB, patch)
2021-03-09 08:39 PST, Rob Buis
ews-feeder: commit-queue-
Details | Formatted Diff | Diff
Patch (3.12 KB, patch)
2021-03-09 12:42 PST, Rob Buis
ews-feeder: commit-queue-
Details | Formatted Diff | Diff
Patch (3.14 KB, patch)
2021-03-10 01:25 PST, Rob Buis
no flags Details | Formatted Diff | Diff
Patch (5.35 KB, patch)
2021-03-11 01:03 PST, Rob Buis
no flags Details | Formatted Diff | Diff
Patch (5.50 KB, patch)
2021-03-11 05:04 PST, Rob Buis
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rob Buis 2021-03-09 08:18:35 PST
Cleanup RenderFlexibleBox.
Comment 1 Rob Buis 2021-03-09 08:20:09 PST
Created attachment 422698 [details]
Patch
Comment 2 Rob Buis 2021-03-09 08:39:02 PST
Created attachment 422705 [details]
Patch
Comment 3 Rob Buis 2021-03-09 12:42:24 PST
Created attachment 422746 [details]
Patch
Comment 4 Rob Buis 2021-03-10 01:25:57 PST
Created attachment 422807 [details]
Patch
Comment 5 Rob Buis 2021-03-11 01:03:57 PST
Created attachment 422912 [details]
Patch
Comment 6 Sergio Villar Senin 2021-03-11 04:51:21 PST
Comment on attachment 422912 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=422912&action=review

Thanks for the cleanup!

> Source/WebCore/rendering/RenderFlexibleBox.cpp:1226
> +            return std::max(childSize, std::min(transferredSize, contentSize));

This is correct from the current API POV, but I think we should review at some point computeMainSizeFromAspectRatioUsing() because it's OK if it returns a nullopt. Right now it isn't possible because we replace it by 0_lu just before returning but I think that is not very precise. Could you add some FIXME so that we don't forget about it?
Comment 7 Rob Buis 2021-03-11 05:04:31 PST
Created attachment 422924 [details]
Patch
Comment 8 EWS 2021-03-11 09:57:26 PST
Committed r274284: <https://commits.webkit.org/r274284>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 422924 [details].
Comment 9 Radar WebKit Bug Importer 2021-03-11 09:58:18 PST
<rdar://problem/75320821>