Summary: | Improve percentage height in shouldComputeLogicalWidthFromAspectRatio | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Rob Buis <rbuis> | ||||||||
Component: | CSS | Assignee: | Rob Buis <rbuis> | ||||||||
Status: | RESOLVED FIXED | ||||||||||
Severity: | Normal | CC: | changseok, esprehn+autocc, ews-watchlist, glenn, kondapallykalyan, pdr, simon.fraser, webkit-bug-importer | ||||||||
Priority: | P2 | Keywords: | InRadar | ||||||||
Version: | WebKit Nightly Build | ||||||||||
Hardware: | Unspecified | ||||||||||
OS: | Unspecified | ||||||||||
Bug Depends on: | |||||||||||
Bug Blocks: | 47738 | ||||||||||
Attachments: |
|
Description
Rob Buis
2021-02-04 06:32:30 PST
Created attachment 419278 [details]
Patch
Created attachment 419454 [details]
Patch
Comment on attachment 419454 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=419454&action=review > Source/WebCore/rendering/RenderBox.cpp:5092 > + if (!shouldComputeLogicalWidthFromAspectRatioAndInsets() && !style().logicalHeight().isFixed() && !(style().logicalHeight().isPercentOrCalculated() && (isOutOfFlowPositioned() || percentageLogicalHeightIsResolvable()))) That list of conditions is getting pretty complex. Maybe wrap it in a lambda for clarity. Created attachment 420613 [details]
Patch
Committed r272992: <https://commits.webkit.org/r272992> All reviewed patches have been landed. Closing bug and clearing flags on attachment 420613 [details]. |