Bug 1942715: Part 4 - Switch to using a more transparent wrapper. r=firefox-style-system-reviewers,emilio

Don't have to write more one-off wrappers for size and margin.
It does cost having to copy fallback values, but that may
not be a huge tradeoff.

Differential Revision: https://phabricator.services.mozilla.com/D237097
This commit is contained in:
David Shin
2025-02-11 21:06:24 +00:00
parent b53ff2c280
commit c536f3deb5
11 changed files with 156 additions and 96 deletions

View File

@@ -3833,7 +3833,7 @@ bool PresShell::ScrollFrameIntoView(
const auto positionProperty = aFrame->StyleDisplay()->mPosition;
for (auto side : AllPhysicalSides()) {
if (stylePosition->GetAnchorResolvedInset(side, positionProperty)
.IsAuto()) {
->IsAuto()) {
continue;
}
// See if this axis is stuck.