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-12 01:31:30 +00:00
parent 276e5aef75
commit 4dc4e2d920
11 changed files with 157 additions and 105 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.