| Summary: | [contain-intrinsic-size] auto-009.html is failing | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | cathiechen <cathiechen> | ||||||||||||
| Component: | CSS | Assignee: | cathiechen <cathiechen> | ||||||||||||
| Status: | RESOLVED FIXED | ||||||||||||||
| Severity: | Normal | CC: | obrufau, webkit-bug-importer | ||||||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||||||
| Version: | WebKit Nightly Build | ||||||||||||||
| Hardware: | Unspecified | ||||||||||||||
| OS: | Unspecified | ||||||||||||||
| Bug Depends on: | 239450 | ||||||||||||||
| Bug Blocks: | |||||||||||||||
| Attachments: |
|
||||||||||||||
|
Description
cathiechen
2022-12-27 21:39:35 PST
Created attachment 464232 [details]
WIP-patch
Comment on attachment 464232 [details] WIP-patch View in context: https://bugs.webkit.org/attachment.cgi?id=464232&action=review > Source/WebCore/dom/ElementRareData.cpp:44 > + LayoutUnit lastRemembedHeight; These should be logical (since ResizeObserver tracks changes to the logical sizes). Created attachment 464921 [details]
WIP-patch
(In reply to Oriol Brufau from comment #3) > Comment on attachment 464232 [details] > WIP-patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=464232&action=review > > > Source/WebCore/dom/ElementRareData.cpp:44 > > + LayoutUnit lastRemembedHeight; > > These should be logical (since ResizeObserver tracks changes to the logical > sizes). Done, thanks:) Comment on attachment 464921 [details] WIP-patch View in context: https://bugs.webkit.org/attachment.cgi?id=464921&action=review > Source/WebCore/dom/Element.cpp:4484 > +void Element::clearLastRememberedLogicalSize() Maybe clearLastRememberedSizes? No need to consider it logical since it's clearing both. > Source/WebCore/rendering/updating/RenderTreeUpdater.cpp:351 > + element.setLastRememberedLogicalWidth(LayoutUnit(-1)); You are checking the physical containIntrinsicWidthType but clearing the logical setLastRememberedLogicalWidth. I don't think this will work in a vertical writing mode. Comment on attachment 464921 [details] WIP-patch View in context: https://bugs.webkit.org/attachment.cgi?id=464921&action=review >> Source/WebCore/rendering/updating/RenderTreeUpdater.cpp:351 >> + element.setLastRememberedLogicalWidth(LayoutUnit(-1)); > > You are checking the physical containIntrinsicWidthType but clearing the logical setLastRememberedLogicalWidth. > I don't think this will work in a vertical writing mode. Ah, yes, should check writing mode here! Will do, thanks! Created attachment 464940 [details]
WIP-patch
Created attachment 464941 [details]
WIP-patch
Created attachment 464942 [details]
WIP-patch
Pull request: https://github.com/WebKit/WebKit/pull/10359 Committed 260939@main (d8e31024efa9): <https://commits.webkit.org/260939@main> Reviewed commits have been landed. Closing PR #10359 and removing active labels. |