Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 7fc789af986932298d383a2e6600bedc335f1cf4
https://github.com/WebKit/WebKit/commit/7fc789af986932298d383a2e6600bedc335f1cf4
Author: Elika Etemad <[email protected]>
Date: 2025-10-28 (Tue, 28 Oct 2025)
Changed paths:
M Source/WebCore/rendering/PositionedLayoutConstraints.cpp
M Source/WebCore/rendering/PositionedLayoutConstraints.h
Log Message:
-----------
Clean up static alignment code in PositionedLayoutConstraints
https://bugs.webkit.org/show_bug.cgi?id=301375
rdar://163294956
Reviewed by Sammy Gill.
Encapsulates the static position alignment logic a bit better, so it's not so
tangled up with everything else. Also folds down some other logic so it's more
compact and easy to follow.
Also removes use of RenderStyle::isLeftToRightDirection() which is deprecated.
* Source/WebCore/rendering/PositionedLayoutConstraints.cpp:
(WebCore::PositionedLayoutConstraints::remainingSpaceForStaticAlignment const):
(WebCore::PositionedLayoutConstraints::resolvePosition const):
(WebCore::PositionedLayoutConstraints::resolveAlignmentValue const):
(WebCore::PositionedLayoutConstraints::isEligibleForStaticRangeAlignment
const): Deleted.
* Source/WebCore/rendering/PositionedLayoutConstraints.h:
Canonical link: https://commits.webkit.org/302247@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications