[webkit-changes] [WebKit/WebKit] 311940: [Cleanup] Only grid items may be out-of-flow-posit...
Alan Baradlay
noreply at github.com
Tue Dec 31 15:08:54 PST 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 311940ba37c37e0f9cf21e3c627a47b7bed715ff
https://github.com/WebKit/WebKit/commit/311940ba37c37e0f9cf21e3c627a47b7bed715ff
Author: Alan Baradlay <zalan at apple.com>
Date: 2024-12-31 (Tue, 31 Dec 2024)
Changed paths:
M Source/WebCore/rendering/RenderBox.cpp
M Source/WebCore/rendering/RenderFlexibleBox.cpp
Log Message:
-----------
[Cleanup] Only grid items may be out-of-flow-positioned and still participate in their FC layout
https://bugs.webkit.org/show_bug.cgi?id=285187
Reviewed by Antti Koivisto.
Only grid and flex use override containing block for their items, but only grid items
can participate in their FC layout when out-of-flow positioned.
* Source/WebCore/rendering/RenderBox.cpp:
(WebCore::RenderBox::containingBlockLogicalWidthForPositioned const):
(WebCore::RenderBox::containingBlockLogicalHeightForPositioned const):
* Source/WebCore/rendering/RenderFlexibleBox.cpp:
(WebCore::RenderFlexibleBox::maybeCacheFlexItemMainIntrinsicSize):
Canonical link: https://commits.webkit.org/288348@main
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list