Commit Graph
1015 Commits
Author SHA1 Message Date
Emilio Cobos Álvarez a46a009084 Bug 2046642 - Fix interaction of gap and visibility: collapse in flex containers. r=dholbert,layout-reviewers,dshin
Differential Revision: https://phabricator.services.mozilla.com/D306099
2026-06-11 22:55:57 +00:00
Hiroyuki Ikezoe b42414c3c0 Bug 1950303 - Convert nsContainerFrame::ConsiderChildOverflow's bool parameter to OverflowAreaUnionFlags enum. r=layout-reviewers,emilio
This is a preparatory refactor for a follow-up commit that introduces a new
flag (for absolutely positioned children). Using a bit-flag enum makes call
sites self-documenting and lets us add more orthogonal options without
expanding the parameter list.

No behavior change.

Differential Revision: https://phabricator.services.mozilla.com/D299915
2026-05-12 04:18:04 +00:00
Eugeniusz Lewandowski fc8097fcc3 Bug 1650944 - Remove ReflowInput.h include from nsIFrame.h r=firefox-style-system-reviewers,layout-reviewers,emilio
Removed the Reflow Input in nsIFrame. Added includes for ReflowInput as
necessary in cpp files. Also Forward Declared nsLineLayout in 3 header
files.

Differential Revision: https://phabricator.services.mozilla.com/D298203
2026-05-04 12:06:23 +00:00
Ting-Yu Lin 2f6171db5c Bug 2030432 - Fix abspos painting in wrong column when its containing block has transform. r=layout-reviewers,dshin
When a transformed absolute containing block fragments across multi-column,
abspos children could paint in the wrong column. This happened because the
abspos display item was built when its placeholder was encountered during
display list traversal, and the placeholder could end up in a different column
than where the abspos should paint.

Extend `DisplayPushedAbsoluteFrames` (now renamed to
`DisplayAbsoluteFramesNotBuiltByPlaceholder`) to also directly build abspos
frames whose placeholder lived in a different continuation subtree. Skip
building those abspos frames when they are later traversed via their
placeholders.

Differential Revision: https://phabricator.services.mozilla.com/D294312
2026-04-15 23:27:08 +00:00
agoloman 83610050c8 Revert "Bug 2030432 - Fix abspos painting in wrong column when its containing block has transform. r=layout-reviewers,dshin" for causing failures @anchor-position-multicol-fixed-001.html.
This reverts commit d7c27ff2a1.
2026-04-15 21:00:00 +00:00
Ting-Yu Lin d7c27ff2a1 Bug 2030432 - Fix abspos painting in wrong column when its containing block has transform. r=layout-reviewers,dshin
When a transformed absolute containing block fragments across multi-column,
abspos children could paint in the wrong column. This happened because the
abspos display item was built when its placeholder was encountered during
display list traversal, and the placeholder could end up in a different column
than where the abspos should paint.

Extend `DisplayPushedAbsoluteFrames` (now renamed to
`DisplayAbsoluteFramesNotBuiltByPlaceholder`) to also directly build abspos
frames whose placeholder lived in a different continuation subtree. Skip
building those abspos frames when they are later traversed via their
placeholders.

Differential Revision: https://phabricator.services.mozilla.com/D294312
2026-04-15 20:04:19 +00:00
Sylvestre Ledru 55481ac4b5 Bug 2023419 - Remove Emacs/Vim modelines from layout/ r=emilio,firefox-style-system-reviewers,layout-reviewers
replaced by .editorconfig

Differential Revision: https://phabricator.services.mozilla.com/D287852
2026-03-17 12:05:43 +00:00
Chris Peterson dcfa9d3b1c Bug 1775161 - Fix -Wdeprecated-this-capture warnings in layout. r=layout-reviewers,TYLin
layout/forms/HTMLSelectEventListener.cpp:739:23 [-Wdeprecated-this-capture] implicit capture of 'this' with a capture default of '=' is deprecated
layout/generic/nsFlexContainerFrame.cpp:3796:18 [-Wdeprecated-this-capture] implicit capture of 'this' with a capture default of '=' is deprecated
layout/generic/nsFlexContainerFrame.cpp:3802:18 [-Wdeprecated-this-capture] implicit capture of 'this' with a capture default of '=' is deprecated
layout/style/FontFaceImpl.cpp:466:5 [-Wdeprecated-this-capture] implicit capture of 'this' with a capture default of '=' is deprecated

Differential Revision: https://phabricator.services.mozilla.com/D281489
2026-02-18 07:25:58 +00:00
Emilio Cobos Álvarez 30b7a3d89a Bug 2014922 - Untangle pseudo-element and anon box definitions. r=firefox-style-system-reviewers,xpcom-reviewers,layout-reviewers,dshin,nika
I looked at this because in bug 2014331 I need to mark more pseudos as
element-backed, and it's kinda silly the state our setup is in right
now.

This is all a somewhat historical mess, because in the old style system
pseudo-elements were just atoms, and we had that different types of atom
setup. The source of truth for these right now lives in a header macro
file, which isn't very flexible.

But now we have PseudoStyleType which represents both pseudos and anon
boxes, and is similar to the rust side PseudoElement enum.

Plus, the ::-moz-tree pseudo-elements are defined as anon boxes which
doesn't make any sense, so move them to pseudo-elements while at it.

Unify this in a similar way we treat CSS properties: Source of truth is
in pseudo_elements.toml / anon_boxes.toml, and we generate Rust and C++
as needed. This allows removing the nsStaticAtom subclass thing from
XPCOM, too.

This avoids some nasty duplication around which pseudos are pref-gated
and what not as well.

Differential Revision: https://phabricator.services.mozilla.com/D282076
2026-02-06 07:39:54 +00:00
Norisz Fay 27f4694604 Revert "Bug 2014922 - Untangle pseudo-element and anon box definitions. r=firefox-style-system-reviewers,xpcom-reviewers,layout-reviewers,dshin,nika" for causing bustage @ ElementAnimationData.h
This reverts commit c70290c619.
2026-02-06 05:34:42 +00:00
Emilio Cobos Álvarez c70290c619 Bug 2014922 - Untangle pseudo-element and anon box definitions. r=firefox-style-system-reviewers,xpcom-reviewers,layout-reviewers,dshin,nika
I looked at this because in bug 2014331 I need to mark more pseudos as
element-backed, and it's kinda silly the state our setup is in right
now.

This is all a somewhat historical mess, because in the old style system
pseudo-elements were just atoms, and we had that different types of atom
setup. The source of truth for these right now lives in a header macro
file, which isn't very flexible.

But now we have PseudoStyleType which represents both pseudos and anon
boxes, and is similar to the rust side PseudoElement enum.

Plus, the ::-moz-tree pseudo-elements are defined as anon boxes which
doesn't make any sense, so move them to pseudo-elements while at it.

Unify this in a similar way we treat CSS properties: Source of truth is
in pseudo_elements.toml / anon_boxes.toml, and we generate Rust and C++
as needed. This allows removing the nsStaticAtom subclass thing from
XPCOM, too.

This avoids some nasty duplication around which pseudos are pref-gated
and what not as well.

Differential Revision: https://phabricator.services.mozilla.com/D282076
2026-02-06 03:42:45 +00:00
Ting-Yu Lin 18520f8286 Bug 2014221 - Use StyleSize::FromAppUnits() to simplify code in layout/. r=layout-reviewers,firefox-style-system-reviewers,emilio
Differential Revision: https://phabricator.services.mozilla.com/D281640
2026-02-04 19:36:36 +00:00
Emilio Cobos Álvarez f1dea2d65d Bug 2013141 - Remove custom_consts specialness from CSS keywords. r=firefox-style-system-reviewers,layout-reviewers,dshin
Just name the things like in CSS.

Differential Revision: https://phabricator.services.mozilla.com/D281001
2026-01-30 21:12:51 +00:00
David Shin 9462427f28 Bug 2013139: Paint pushed absolute frames and after painting children. r=emilio,layout-reviewers
See discussion in
https://phabricator.services.mozilla.com/D272401#inline-1485354

We seem to rely on the timing of overflow containers display items for e.g.
Pagination.

DisplayList will be sorted by z-index, but it's a stable sort that relies on
items being added in document order.

`out-of-flow-in-multicolumn-paint-order-003.html` fails due to us not
fragmenting grid items needs fragmentation.

Differential Revision: https://phabricator.services.mozilla.com/D281028
2026-01-30 14:02:16 +00:00
Jonathan Kew e12c1ee6d0 Bug 1951791 - Use container's writing mode when ResolvedAscent needs to synthesize baseline offset for an orthogonal flex item. r=layout-reviewers,TYLin
Also rename the writing mode param of SynthesizeBOffsetFromInnerBox
from aWM to aCBWM to make it clearer that it should be the writing
mode of the containing block, not the inner frame.

This fixes the incorrectly-synthesized flex-item baseline in
grid-baseline-001-ref.html, which was causing the test to show
a spurious failure.

Differential Revision: https://phabricator.services.mozilla.com/D279229
2026-01-16 11:30:36 +00:00
Emilio Cobos Álvarez 5e022982db Bug 2008148 - Unify frame constructor append and insertion codepaths. r=TYLin,layout-reviewers
Having all that duplicated code is kinda useless, since append needs to
deal with insert anyways due to things like `::after` and
`display: contents`. This fixes the issue by virtue of this check:

  https://searchfox.org/firefox-main/rev/aee7c0f24f488cd7f5a835803b48dd0c0cb2fd5f/layout/base/nsCSSFrameConstructor.cpp#7009

Which is really what's going on. IsValidSibling is wrong and can go.
Instead let WipeContainingBlock* deal with it, since we run that after
constructing the items.

This unlocks further simplifications but seems like a step in the right
direction and I don't want to get too side tracked into rewriting the
frame constructor.

The fieldset frame change mirrors table captions. Legends are dealt with
properly by the existing check in ConstructFramesFromItemList and / or
WipeContainingBlock. That allows to remove some special cases in
nsFlexContainerFrame and InspectorUtils.

Differential Revision: https://phabricator.services.mozilla.com/D277777
2026-01-03 09:29:18 +00:00
Ting-Yu Lin 9aa23feec4 Bug 2007058 Part 2 - Paint pushed abspos frames with NS_FRAME_IS_PUSHED_OUT_OF_FLOW bit in DisplayPushedAbsoluteFrames(). r=layout-reviewers,dholbert
Mark abspos next-in-flows with the `NS_FRAME_IS_PUSHED_OUT_OF_FLOW` bit, and
adjust the display item generation code accordingly.

In Bug 1994346, pushed abspos first-in-flow will get the bit as well.

Differential Revision: https://phabricator.services.mozilla.com/D277138
2025-12-19 21:05:37 +00:00
Jonathan Watt 23ba459f0e Bug 2004072. Pass a SizeComputationInput to nsIFrame::ComputeSize etc instead of a gfxContext. r=dshin,layout-reviewers,TYLin
Differential Revision: https://phabricator.services.mozilla.com/D275519
2025-12-09 06:59:12 +00:00
Jonathan Kew 1267c6b0ea Bug 2003765 - Use C++20's 'default' to implement simple comparison operators in /layout/. r=layout-reviewers,firefox-style-system-reviewers,emilio
Just cleans up the code a bit; should not change any behavior.

Differential Revision: https://phabricator.services.mozilla.com/D274907
2025-12-04 01:25:04 +00:00
Ting-Yu Lin 80e7aa39a2 Bug 1994083 - Generate display items for frames in absolute child list. r=dholbert,layout-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D272401
2025-11-24 20:48:15 +00:00
Cristina Horotan 8317428fcd Revert "Bug 1994083 - Add WPTs for abspos fragmentation in vertical-rl writing-mode. r=dholbert" for causing Wr failures nsFrameList::ContinueRemoveFrame related
This reverts commit 0bb89a9e15.

Revert "Bug 1994083 - Adjust existing WPT expectations. r=dholbert"

This reverts commit a716c30e8f.

Revert "Bug 1994083 - Generate display items for frames in absolute child list. r=dholbert,layout-reviewers"

This reverts commit 1da35cc35d.

Revert "Bug 1994083 - Allow AbsoluteContainingBlock to reflow all abspos continuations. r=dholbert,layout-reviewers"

This reverts commit 643eec9921.
2025-11-23 05:31:49 +00:00
Ting-Yu Lin 1da35cc35d Bug 1994083 - Generate display items for frames in absolute child list. r=dholbert,layout-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D272401
2025-11-22 23:34:19 +00:00
Emilio Cobos Álvarez 4bbf8598d1 Bug 1998125 - Remove a lot of now unused view code. r=layout-reviewers,firefox-style-system-reviewers,dshin
No need to reposition views during layout and so on, now that we don't
use views for either popups nor subdocuments.

No need for nsView to have parent / sibling / children either.

Differential Revision: https://phabricator.services.mozilla.com/D271205
2025-11-12 01:53:45 +00:00
Emily McDonough 2490e6d383 Bug 1994516 - Make nsILineIterator::FindLineContaining take a const nsIFrame*. r=layout-reviewers,TYLin
This requires making nsTHashtable::Contains and nsFrameList::IndexOf accept
const pointers.

Differential Revision: https://phabricator.services.mozilla.com/D268778
2025-10-16 18:14:53 +00:00
Emilio Cobos Álvarez 0b924e8dc7 Bug 1994696 - Make alignment properties on different axes share types to the extent possible. r=layout-reviewers,firefox-style-system-reviewers,dshin
For bug 1994673 we need to cascade AlignSelf as JustifySelf and vice
versa. This is a lot easier if the types are shared.

For justify-items we can't right now because of the `legacy`
shenanigans, which really sucks. I'll try to find a solution for that.
Maybe we should just clobber the legacy value.

Differential Revision: https://phabricator.services.mozilla.com/D268866
2025-10-16 18:12:09 +00:00
Ting-Yu Lin ca88488080 Bug 1991352 Part 2 - Rename nsAbsoluteContainingBlock to mozilla::AbsoluteContainingBlock. r=firefox-style-system-reviewers,layout-reviewers,emilio
With this patch moves `AbsoluteContainingBlock` into `mozilla` namespace, we
could remove `mozilla::` qualifiers in the header.

Differential Revision: https://phabricator.services.mozilla.com/D266558
2025-09-29 07:28:45 +00:00
Emilio Cobos Álvarez 67ec7b59e0 Bug 1990448 - Do content-visibility checks on the container. r=layout-reviewers,dshin
No behavior change, but this saves some per-child work and conceptually
is the right thing to do. HidesContent() is non-trivial.

Add an assertion to make sure we don't enter BuildDisplayListForChild
at all if content is hidden.

I audited all the callers, and the ones I didn't touch can't have
content-visibility (things like the viewport / pages / etc).

Differential Revision: https://phabricator.services.mozilla.com/D265956
2025-09-24 15:11:22 +00:00
Ting-Yu Lin 2ad9aca842 Bug 1984766 - Replace BoolToYesNo with mozilla::YesOrNo. r=layout-reviewers,hiro
Differential Revision: https://phabricator.services.mozilla.com/D265568
2025-09-22 10:19:02 +00:00
Emilio Cobos Álvarez fd1f57b58d Bug 1873301 - Remove nsHTMLButtonControlFrame. r=dholbert,layout-reviewers,dshin
This removes the implementation of nsHTMLButtonControlFrame, instead
reusing nsBlockFrame + align-content (or the relevant display type for
flex / grid / columns / etc).

This matches what Blink does and, for the most part, it is trivial.
It requires moving some special cases around, and override inline flow
display, tho so that buttons don't suddenly start fragmenting in the
inline axis.

It adds a tiny fix for a writing-mode mismatch in
nsBlockFrame::AlignContent(), covered by
layout/reftests/writing-mode/1138356-1-button-contents-alignment.html

containing-block-change-button tests are tweaked to avoid overflowing
the 600px viewport from WPT reftests causing scrollbar fuzziness.

contain-layout-baseline-005.html removes the <select> element just like
https://chromium-review.googlesource.com/c/chromium/src/+/5479489
removed the <button>s, since they align the same now, added a test for
that.

Differential Revision: https://phabricator.services.mozilla.com/D257149
2025-07-15 11:05:54 +00:00
David Shin ad5f8e7fd0 Bug 1969305: Pass anchor resolution params for maxsize. r=layout-reviewers,emilio
Differential Revision: https://phabricator.services.mozilla.com/D256291
2025-07-14 21:28:26 +00:00
David Shin 8090f17c2b Bug 1969305: Pass anchor resolution params for size. r=layout-reviewers,emilio
Differential Revision: https://phabricator.services.mozilla.com/D256290
2025-07-14 21:28:23 +00:00
David Shin e68ac5eb03 Bug 1969305: Pass anchor resolution params for margin. r=layout-reviewers,emilio
Differential Revision: https://phabricator.services.mozilla.com/D256289
2025-07-14 21:28:20 +00:00
pstanciu 7a21072acf Revert "Bug 1969305: Adjust WPT expectations. r=layout-reviewers,emilio" for causing failures @ anchor-name-003.html
This reverts commit 5e12720896.

Revert "Bug 1969305: Pass anchor resolution params for maxsize. r=layout-reviewers,emilio"

This reverts commit 27a56d04a1.

Revert "Bug 1969305: Pass anchor resolution params for size. r=layout-reviewers,emilio"

This reverts commit 69b2bd0242.

Revert "Bug 1969305: Pass anchor resolution params for margin. r=layout-reviewers,emilio"

This reverts commit 23c707d5a7.

Revert "Bug 1969305: Implement anchor size resolution. r=layout-reviewers,emilio"

This reverts commit c0d1d8808d.
2025-07-12 02:02:55 +00:00
David Shin 27a56d04a1 Bug 1969305: Pass anchor resolution params for maxsize. r=layout-reviewers,emilio
Differential Revision: https://phabricator.services.mozilla.com/D256291
2025-07-11 15:21:45 +00:00
David Shin 69b2bd0242 Bug 1969305: Pass anchor resolution params for size. r=layout-reviewers,emilio
Differential Revision: https://phabricator.services.mozilla.com/D256290
2025-07-11 15:21:42 +00:00
David Shin 23c707d5a7 Bug 1969305: Pass anchor resolution params for margin. r=layout-reviewers,emilio
Differential Revision: https://phabricator.services.mozilla.com/D256289
2025-07-11 15:21:39 +00:00
Atila Butkovits 0b2944a3d2 Revert "Bug 1969305: Adjust WPT expectations. r=layout-reviewers,emilio" for causing bustages at GeckoBindings.cpp.
This reverts commit 49a7b8afce.

Revert "Bug 1969305: Pass anchor resolution params for maxsize. r=layout-reviewers,emilio"

This reverts commit 0b615836cf.

Revert "Bug 1969305: Pass anchor resolution params for size. r=layout-reviewers,emilio"

This reverts commit 359badb60e.

Revert "Bug 1969305: Pass anchor resolution params for margin. r=layout-reviewers,emilio"

This reverts commit 17f7f64cd8.

Revert "Bug 1969305: Implement anchor size resolution. r=layout-reviewers,emilio"

This reverts commit 47197ef7ab.
2025-07-11 01:18:14 +00:00
David Shin 0b615836cf Bug 1969305: Pass anchor resolution params for maxsize. r=layout-reviewers,emilio
Differential Revision: https://phabricator.services.mozilla.com/D256291
2025-07-10 20:58:24 +00:00
David Shin 359badb60e Bug 1969305: Pass anchor resolution params for size. r=layout-reviewers,emilio
Differential Revision: https://phabricator.services.mozilla.com/D256290
2025-07-10 20:58:21 +00:00
David Shin 17f7f64cd8 Bug 1969305: Pass anchor resolution params for margin. r=layout-reviewers,emilio
Differential Revision: https://phabricator.services.mozilla.com/D256289
2025-07-10 20:58:18 +00:00
Emilio Cobos Álvarez a8a2311474 Bug 1976457 - Sort includes in layout/. r=janv,dshin
Interesting bit is layout/.clang-format, the rest is all automated.

Differential Revision: https://phabricator.services.mozilla.com/D256616
2025-07-09 13:24:00 +00:00
Ting-Yu Lin 2afcdc0638 Bug 1973607 - Add logs to flex and grid container frame. r=layout-reviewers,emilio
This patch adds logs at the beginning of `Reflow()` and
`ComputeIntrinsicISize()` for both flex and grid container frames. These logs
are useful when debugging nested flex/grid container scenarios in Pernosco, such
as Bug 1966450.

To enable the flex and grid logging:

```
MOZ_LOG="GridContainer:5,FlexContainer:5" ./mach run path/to/test
```

Differential Revision: https://phabricator.services.mozilla.com/D254755
2025-06-24 23:15:31 +00:00
David Shin 8897bdc924 Bug 1971135: Use anchor resolution params in place of position property. r=TYLin
... The full resolution that makes use of additional parameters will follow
shortly.

Differential Revision: https://phabricator.services.mozilla.com/D253175
2025-06-16 20:35:30 +00:00
David Shin 6f62c65eda Bug 1971135: Implement and use anchor positioning parameter helpers. r=layout-reviewers,TYLin
These helpers for anchor resolution parameters from `nsIFrame` and
`ReflowInput` cover many use cases.

Differential Revision: https://phabricator.services.mozilla.com/D253174
2025-06-16 20:35:27 +00:00
David Shin 90c7608ba6 Bug 1971135: Rename anchor params to be specific for offset resolution. r=TYLin
... Also, consistently use `anchorResolutionParams` as the variable name.

Differential Revision: https://phabricator.services.mozilla.com/D253173
2025-06-16 20:35:24 +00:00
David Shin c5abad242d Bug 1923961: Unify anchor resolution parameters and use it for inset resolution. r=layout-reviewers,emilio
... In addition to previous parameters, we need access to the positioned
frame, as well as the containing block's size (If we're in reflow).

Differential Revision: https://phabricator.services.mozilla.com/D249625
2025-05-29 22:03:13 +00:00
Sandor Molnar 354a4799e0 Revert "Bug 1923961: apply code formatting via Lando" for causing build bustages @ GeckoBindings.cpp
This reverts commit ec57e25d89.

Revert "Bug 1923961: Adjust WPT expectations. r=firefox-style-system-reviewers,emilio"

This reverts commit f2612695a7.

Revert "Bug 1923961: Resolve anchor() in calc(). r=firefox-style-system-reviewers,emilio"

This reverts commit b206c5264b.

Revert "Bug 1923961: Initial implementation of anchor lookup for anchor(). r=firefox-style-system-reviewers,emilio"

This reverts commit 56c17701c5.

Revert "Bug 1923961: Make `nsLayoutUtils::GetRectRelativeToFrame` take in const ptrs. r=firefox-style-system-reviewers,emilio"

This reverts commit 34fb773837.

Revert "Bug 1923961: Pass the new AnchorPosResolutionParams to servo side. r=firefox-style-system-reviewers,emilio"

This reverts commit 73477e3296.

Revert "Bug 1923961: Unify anchor resolution parameters and use it for inset resolution. r=layout-reviewers,emilio"

This reverts commit 8461579472.

Revert "Bug 1923961: Expose `AnchorSide` to C++. r=firefox-style-system-reviewers,boris"

This reverts commit 7ecbb38056.
2025-05-29 20:46:30 +00:00
David Shin 8461579472 Bug 1923961: Unify anchor resolution parameters and use it for inset resolution. r=layout-reviewers,emilio
... In addition to previous parameters, we need access to the positioned
frame, as well as the containing block's size (If we're in reflow).

Differential Revision: https://phabricator.services.mozilla.com/D249625
2025-05-29 19:00:08 +00:00
Sandor Molnar cb9703fe12 Revert "Bug 1923961: apply code formatting via Lando" for causing build bustages & wpt failures.
This reverts commit f94a0ccf5a.

Revert "Bug 1923961: Adjust WPT expectations. r=firefox-style-system-reviewers,emilio"

This reverts commit e3e24626a3.

Revert "Bug 1923961: Resolve anchor() in calc(). r=firefox-style-system-reviewers,emilio"

This reverts commit a21f60c569.

Revert "Bug 1923961: Initial implementation of anchor lookup for anchor(). r=firefox-style-system-reviewers,emilio"

This reverts commit daaa53a9ce.

Revert "Bug 1923961: Make `nsLayoutUtils::GetRectRelativeToFrame` take in const ptrs. r=firefox-style-system-reviewers,emilio"

This reverts commit c1db75e7fc.

Revert "Bug 1923961: Pass the new AnchorPosResolutionParams to servo side. r=firefox-style-system-reviewers,emilio"

This reverts commit e0f8f99c69.

Revert "Bug 1923961: Unify anchor resolution parameters and use it for inset resolution. r=layout-reviewers,emilio"

This reverts commit adc70f8493.

Revert "Bug 1923961: Expose `AnchorSide` to C++. r=firefox-style-system-reviewers,boris"

This reverts commit b917ffcec6.
2025-05-29 18:09:52 +00:00
David Shin adc70f8493 Bug 1923961: Unify anchor resolution parameters and use it for inset resolution. r=layout-reviewers,emilio
... In addition to previous parameters, we need access to the positioned
frame, as well as the containing block's size (If we're in reflow).

Differential Revision: https://phabricator.services.mozilla.com/D249625
2025-05-29 16:35:34 +00:00