* Inspector: a hit area's original bounds before minimum-size expansion
HitArea::bounds is the sensing shape's own rect, beside rect, which is grown to
the minimum hit size. A pointer-only part (a slider's thumb) has no access node
or Tab stop, so an app relating a value to its drawn position (a tooltip over the
thumb, a value that follows it) needs its real geometry rather than the larger
target. The trial checks the bounds match the painted knob and the value travel.
(cherry picked from commit 78cd3e98ad)
* Small additions review: a replay moves a hit area's bounds with its rect
(cherry picked from commit f9b1c60144)
* Formatting of the bounds change
* Test inspector hit bounds after a translated memo replay
---------
Co-authored-by: lightcraft-port <port@lightcraft.local>
On Windows the test's temp dir is canonicalized to a verbatim `\?\` path,
and `PathBuf::push` of `..` onto a verbatim path pops the last component.
`tmp.path().join("a").join("..").join("b")` was therefore `...\b`, which
the validator correctly accepted, and
`rejects_relative_parent_traversal_and_root_paths` failed on the Windows
gate. The test now appends `\a\..\b` to the path text, so the validator
sees the `..` component and rejects it. The validator is unchanged.
The Layers panel keyed its display order by the tree's tracked revision,
which every edit moves, so a selection change in an expanded tree walked
every layer again: 10,002 children() calls for a 10,000-layer document.
LayerTree::order_revision lets the app report a number that changes only
when children, open groups, open effects or sub-row counts change. With
it, the panel keeps the display order until that number, the tracked
source, the filter or a reveal's opens change. While the filter is
active the order still follows the tracked revision, since the filter
reads what the rows show. Trees that report no order revision behave as
before.
Trials count the display order builds: a selection change builds none,
a new order revision builds one, an edit under an active filter builds
one, and another tree with the same order revision builds its own rows.
A browser given a tip painter, row menu rows, drop rules or drag payloads
keyed its presets view as changing in every pass, because no key can follow
what a closure reads. The Swatches panel passes all of these, so its list
ran in every frame.
PresetBrowser::host_version and SwatchesPanel::host_version take a version
for everything those closures read. While it holds and nothing reaches the
presets, the view replays its last run; a new version runs it once. Without
a version the view still runs in every pass.
A flyout measures its group before it shows it. The dock measured the group
in the flyout body's own scope, while the show runs in a child Ui of that
body, so the measure gave the group's memoized views (its tab row and the
panel bodies) other ids than the show. Those views never had a kept run at
the measure's ids and ran in every frame while the flyout stayed open.
The measure now runs in child Ui scopes matching the show's: the group's
child Ui, and inside it the host view's room. At rest an open flyout's tab
row and memoized body replay in every call of the frame.
In a pass with no measuring run, an open menu's rows register with their
level one at a time as each row runs. A row then asked for its letter
among the rows before it only, so the level assigned every letter again
for each row, and "Save" announced S while a later "&Select All" held S
and pressing S ran Select All. The level now keeps the letters of the
whole level while the rows registered so far match the start of the kept
labels, checks only the rows added since the last call, and looks for a
re-registering row at the end of the list first.
A row's measure and parts asked for its shortcut's width several times a
pass, and each time measured the shortcut's face again. The level keeps
the width each row measured in the pass, at the ideal and at the least
proposal: a settled 20-row menu with shortcuts measures 20 shortcut faces
a pass instead of 80.
The tool rail showed its whole slot grid as one memoized view. While a
press is held on a button, for example to keep a tool flyout open, the
view runs in every pass, so every button of the rail ran in every pass.
Each slot's button is now a memoized view of its own inside the grid's
view. A held press or an open flyout runs that slot's view, and the
other slots replay.
MemoView::shown_out_of_view shows a view in a scroll area as outside
one. Out of view it still runs or replays, so its focus stops and
accessibility nodes stay registered. The rail shows each slot's view
this way, and a button in a rail scrolled away from it stays reachable
from the keys and by screen readers.
The wheel split admitted every taker registered last pass, filtered only
by the top modal's family. Over a floating panel with no scroll region of
its own, nothing in the panel took the wheel, so the share went by
position to the canvas under the panel, which panned or zoomed.
The begin hook now reads the layer of the overlay stack under the
pointer and admits only the takers drawn in that layer. Over the
window's base it admits the base's takers, as before. A body mounted in
an OS window of its own counts as that window's base, and a transformed
body counts as the layer it is a sublayer of. The overlay stack records
each transformed body's parent layer, since egui drops its own record of
sublayers at the end of each pass. The focused field and the owner of a
running wheel gesture keep the wheel wherever the pointer is, as the
split's rule has it. The layer is read only in a pass that carries
wheel, pinch or touch input.
A label lines up with its control's first baseline, which the control
records only after it has run. On a row's first appearance the label
had no recorded baseline, so it was placed at the control's top and the
frame ran a discard pass to move it down. Every frame that showed a new
labeled row, such as a form gaining a field, ran twice.
The label step now notes the last baseline recorded for each control
size. A row with no baseline of its own places its label by that one,
and its control's baseline is compared with it when it records: a
control whose text sits elsewhere still asks for the discard pass. A
memoized view that replays its rows keeps the noted baseline.
A stack that takes its width from its content, such as the column in a
popover, held a fill-width child of its header or footer band at its
measured width only in the measuring run. In the real run the child took
its content width, so a RowAlign::SpaceBetween or RowAlign::End row there
placed its children at the start of the band, as RowAlign::Start does.
The header band, and a footer in its own band, now keep the content
column in the real run too, as the body and a footer in the end region
or the body already did. The row shows across the band and places its
children by its alignment.
The new test shows a SpaceBetween and an End row in the header and in
the footer of a popover's stack and checks the children's x positions.
* fix(nightly): allow single-instance sockets and preserve launcher separator
* chore(nightly): sync Cargo.lock for uds_windows dev-dependency
* test(nightly): use short /tmp socket fixture path for macOS sun_path limit
* fix(nightly): verify Windows AF_UNIX reparse tag via afunix.sys