| Summary: | [css-grid] Grid contents sometimes layout with the wrong width | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Matt Woodrow <mattwoodrow> | ||||||
| Component: | Layout and Rendering | Assignee: | Matt Woodrow <mattwoodrow> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | bfulgham, changseok, dino, esprehn+autocc, ews-watchlist, glenn, jfernandez, kondapallykalyan, obrufau, pdr, rego, sebastian.sams, simon.fraser, svillar, webkit-bug-importer, zalan, zsun | ||||||
| Priority: | P2 | Keywords: | InRadar | ||||||
| Version: | WebKit Nightly Build | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| URL: | https://www.economist.com/the-economist-explains/2022/02/03/how-apples-privacy-push-cost-meta-10bn | ||||||||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=209282 | ||||||||
| Attachments: |
|
||||||||
|
Description
Matt Woodrow
2022-03-10 13:46:38 PST
*** Bug 237710 has been marked as a duplicate of this bug. *** Bug 237710 has a reduced test case for this: https://bugs.webkit.org/attachment.cgi?id=454343 This is a regression from https://bugs.webkit.org/show_bug.cgi?id=232140 It seems like we shouldn't be laying out children of a RenderGrid from (const!) computeIntrinsicLogicalWidths using estimated grid breadths. Could we cache the intrinsic sizes when we do a full layout, and reuse those if we haven't marked the RenderGrid as needing layout? A quick prototype of that seems to work. Looks like this showed up previously, but went away due to a change in the flex code. This is new variant of the same existing issue. https://bugs.webkit.org/show_bug.cgi?id=209282 Created attachment 454926 [details]
Patch
Comment on attachment 454926 [details]
Patch
The change looks fine, but there are a few tests that regressed.
Created attachment 455971 [details]
Patch
Committed r292079 (249006@main): <https://commits.webkit.org/249006@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 455971 [details]. |