Bug 212876

Summary: [LFC][BFC] Intrinsic width computation should take min/max-width into account.
Product: WebKit Reporter: zalan <zalan>
Component: Layout and RenderingAssignee: zalan <zalan>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, koivisto, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch none

Description zalan 2020-06-06 20:50:03 PDT
ssia
Comment 1 zalan 2020-06-06 20:55:16 PDT
Created attachment 401285 [details]
Patch
Comment 2 Antti Koivisto 2020-06-07 02:45:37 PDT
Comment on attachment 401285 [details]
Patch

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

> Source/WebCore/layout/FormattingContextGeometry.cpp:120
> -        return width;
> +        return style.logicalWidth();

Probably don't need this return since all paths of the switch return.
Comment 3 Antti Koivisto 2020-06-07 02:48:53 PDT
Comment on attachment 401285 [details]
Patch

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

>> Source/WebCore/layout/FormattingContextGeometry.cpp:120
>> +        return style.logicalWidth();
> 
> Probably don't need this return since all paths of the switch return.

Actually, it is better to not have a default in the switch and instead have ASSERT_NOT_REACHED() here. That way if the enum ever gain another member the compiler will force handling that case.
Comment 4 zalan 2020-06-07 07:10:16 PDT
Created attachment 401291 [details]
Patch
Comment 5 EWS 2020-06-07 08:00:12 PDT
Committed r262698: <https://trac.webkit.org/changeset/262698>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 401291 [details].
Comment 6 Radar WebKit Bug Importer 2020-06-07 08:01:18 PDT
<rdar://problem/64089714>