RESOLVED FIXED 212869
[LFC] Add support for width: min/max-content
https://bugs.webkit.org/show_bug.cgi?id=212869
Summary [LFC] Add support for width: min/max-content
zalan
Reported 2020-06-06 09:11:31 PDT
ssia
Attachments
Patch (20.96 KB, patch)
2020-06-06 09:37 PDT, zalan
no flags
Patch (21.06 KB, patch)
2020-06-06 09:55 PDT, zalan
no flags
Patch (21.31 KB, patch)
2020-06-06 10:12 PDT, zalan
no flags
zalan
Comment 1 2020-06-06 09:37:05 PDT
Antti Koivisto
Comment 2 2020-06-06 09:39:28 PDT
Comment on attachment 401263 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=401263&action=review > Source/WebCore/layout/FormattingContextGeometry.cpp:107 > + auto width = widthType == WidthType::Normal ? style.logicalWidth() : widthType == WidthType::Min ? style.logicalMinWidth() : style.logicalMaxWidth(); a lambda might be more readable
Antti Koivisto
Comment 3 2020-06-06 09:41:04 PDT
Comment on attachment 401263 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=401263&action=review >> Source/WebCore/layout/FormattingContextGeometry.cpp:107 >> + auto width = widthType == WidthType::Normal ? style.logicalWidth() : widthType == WidthType::Min ? style.logicalMinWidth() : style.logicalMaxWidth(); > > a lambda might be more readable with a switch
zalan
Comment 4 2020-06-06 09:55:21 PDT
zalan
Comment 5 2020-06-06 10:12:11 PDT
EWS
Comment 6 2020-06-06 11:02:13 PDT
Committed r262690: <https://trac.webkit.org/changeset/262690> All reviewed patches have been landed. Closing bug and clearing flags on attachment 401267 [details].
Radar WebKit Bug Importer
Comment 7 2020-06-06 11:03:21 PDT
Sam Weinig
Comment 8 2020-06-06 16:19:45 PDT
Comment on attachment 401267 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=401267&action=review > Source/WebCore/layout/FormattingContextGeometry.cpp:113 > + auto width = style.logicalWidth(); > + > + switch (widthType) { > + case WidthType::Normal: > + width = style.logicalWidth(); Is it necessary to compute call style.logicalWidth() twice here?
zalan
Comment 9 2020-06-06 19:32:52 PDT
(In reply to Sam Weinig from comment #8) > Comment on attachment 401267 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=401267&action=review > > > Source/WebCore/layout/FormattingContextGeometry.cpp:113 > > + auto width = style.logicalWidth(); > > + > > + switch (widthType) { > > + case WidthType::Normal: > > + width = style.logicalWidth(); > > Is it necessary to compute call style.logicalWidth() twice here? Haha, yeah absolutely not. Thanks.
Note You need to log in before you can comment on or make changes to this bug.