Bug 212876 - [LFC][BFC] Intrinsic width computation should take min/max-width into account.
Summary: [LFC][BFC] Intrinsic width computation should take min/max-width into account.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: zalan
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-06-06 20:50 PDT by zalan
Modified: 2020-06-07 08:01 PDT (History)
5 users (show)

See Also:


Attachments
Patch (7.05 KB, patch)
2020-06-06 20:55 PDT, zalan
no flags Details | Formatted Diff | Diff
Patch (7.04 KB, patch)
2020-06-07 07:10 PDT, zalan
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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>