A MemoView in a Stack or Row body that shares its height or width counted as one unit sized by its content's measure,
so a fill child inside took its measured size: a whole title bar shown through a memoized view in the shell's title
slot spanned only brand, menus and captions, the captions sat after Help and no title was painted (the title's gap
takes no width of its own since F-24). A direct child of the view's content that is given the shared axis to fill now
tells the view (Scoped::fill_view, noted in layout::fill_size). The body counts the view in the first sweep of its
measuring run and gives it its share as the room of its place, as it does a child that fills it directly; the axis is
kept with the view's measure (lazy::Measured::fills), so replays keep it and an idle frame still replays every call.
A row unit in a row that does not share its width keeps sizing its content from its content along x.
- atomic: a file the user may write but not read (mode 0200) saves again on macOS; its extended
attributes can't be read, so there are none to keep.
- menu, ui-shell, pages, ui-contract, ui-canvas tests: follow the macOS conventions the code already has. The
in-window bar test pins its target as the other bar tests do; macOS has no Menu key and no Cmd+Home/End move;
its platform copy key is Option; a press with Control there is a secondary click, so Control comes after the press.
A modal viewport blocks only the viewports whose top modal opened in an earlier frame, and those with none.
Modals that open in the same frame form one level and block none of each other, so the screen picker's
capture windows, opened over a modal Color Picker, take the click, right-click and Escape that end the
pick, while the Color Picker's window stays blocked until they close. The input hook, key ownership, the
blocked cursor, the close refusal and the window raises all read that one fact.
Conflicts resolved (upstream's design and defaults win; the port's opt-ins stay):
- ui-contract fonts: upstream's served-faces provider, catalog job queue and byte budget;
the port's FaceBytes::chain (Word subset siblings, F-8) re-done on the provider: a served
face lists its served chain faces before the interface faces, a sibling landing after its
owner remakes egui's fonts once, drawing a face marks its chain drawn. The port's chain
trial moves onto upstream's rig, plus a late-sibling trial.
- text editor HostCx follows FacesCx's job-based document_face and document_face_bytes.
- ui-widgets Swatch: upstream's SwatchFill (split, spectrum, image, empty) with the port's
Swatch::optional / SwatchFace::optional (new SwatchFill::None, the "no colour" diagonal)
and Swatch::icon (glyph on the empty well) on top; both word sets kept.
- draw PaintBar: upstream's MixerLoad fill.
- font-manager: upstream's sample band; host rows (port) use it too.
- ui-panels / ui-patterns dock grips: upstream's drag_origin and named slack.
- platform clipboard tests: both trials kept.
Co-Authored-By: Claude <noreply@anthropic.com>
A component's stops register after update, so a part first declared in the pass its
owner asks for it (PdfCraft's Tab onto a field on a page just scrolled in) was not
found, and the request fell back to the component's first stop: Tab reached the first
field. A Part request now lands on its part or awaits it (the stop that registers later
in the pass takes the focus); an Id request keeps the fallback.
Trial: a_part_asked_for_in_the_pass_it_appears_takes_the_focus_not_a_sibling.
Real fixes, no allows: split long functions (portal first reads, canvas wheel read, text editor input pass, list row toggle parts, notice action rows, thumbnails grid aspect and edit rules, comments row entries), boxed the large Entry item row, type aliases for complex types, a StatusMeasure for the status cell's measures, double #[must_use] removed where the type is #[must_use], Copy clones and useless conversions dropped, struct-update syntax in place of field reassignment, a split press-pass test.
Story trials have no host, so document-face and texture loads ran on default_jobs' threads and a fixture
could settle before a face landed (StyleList::variants on Windows: rtl 52.0 vs 52.8, motion shapes change
after the drive). InstallSpec::jobs sets where a context's background work runs while no host is installed;
Env::jobs_of (host, else installed, else default_jobs) replaces the two copies in the face registry and the
texture loader. testing::install_spec and the suite's language hosts use InlineJobs, so a load asked for in
one pass lands in the next on every machine; the two per-story InlineJobs options go.
Union of both sides: upstream's rewritten code (items_extent, scroll_rows, known rows, HostStep, EditorHandle,
prepare/run text split, drop_spot, roving_group/parts_group, counted tooltip texts, data_quad, add_shapes_in,
texture shown()) with the port's additions re-applied (middle scroll, hover delete, hovered row, menu request,
auto-width run, zoom anchor, report_sense, parts re-report, select_all, window-blur draft, modal-dialog escape,
crossing-axis part groups, WellFill, stacking/drag_to_root, break_anywhere, strikethrough, waited). Test module
lists are the union.
Union of the port's and upstream next's changes: document-face chains carried onto
upstream's over-interface faces (one begin-pass edit), refused/declined commands and
requested pastes onto the rewritten command board (resolve_once, Instances), drop
operations beside region tokens in drag registration, wheel layers/exit gate/modal
family beside scroll_owner_inside, locate_wheel beside press records, text_edit
scroll + submit_key, both focus/policy additions, test module lists and trials.
257 conflicted files staged with their conflict markers (630 hunks). The one
modify/delete, crates/ui-patterns/src/patterns/preferences/body.rs (deleted
upstream, modified by the port), keeps the port's file for its area to carry
into upstream's preferences/page.rs. Plan: landing/fw-sync-plan.md.
- The load queue is made once per context, as TextureLoader's is: without a
host, default_jobs() returned a new Arc each call, so every new face made a
new queue and dropped the loads before it.
- The begin-pass step marks a face unavailable when its load is neither
queued nor running and delivered no result (a job that panicked), so the
row stops asking for passes.
- A kept face's draw mark is journaled, so a settled view's replay marks the
faces its run drew and eviction keeps them while on screen.
- One budget over the files the registry keeps plus the files egui still
holds for faces taken out. Past it, the faces drawn longest ago go down to
half the budget and egui's fonts are made again once. The budget is a
registry field; trials set it with testing::document_face_budget.
- FacesCx::document_face takes a closure that makes the load, called only
for a new key, so a ready face clones no FaceInfo or catalog.
- Similar fonts weigh a family by its file's raw usWeightClass again
(FaceInfo::weight_class, None without OS/2; 400 then), not the scan's
weight. The review point that families without OS/2 data now join Similar
fonts was checked: the old read_traits listed them too, with zero PANOSE
and weight 400, so they stay.
Opening the font list read and parsed every visible row's font file on the UI
thread, re-read a collection for each family it holds, rebuilt egui's whole
font set for each face added, and dropped off-screen faces after 64, so
scrolling back loaded them again.
- Document faces reach egui through one served-faces provider: egui parses a
face the first time text is laid out in it, so a face arriving keeps the
parsed faces, the atlas and the galley caches. Faces over the interface
fonts use the same provider; edit_faces' add path and
MAX_INTERFACE_FACE_BYTES go.
- Catalog faces load as jobs on a per-context JobQueue (the host's jobs) and
are ready from the pass after they land; loads no frame asks for are
dropped. Faces whose bytes the app holds register in the same pass.
- The registry keeps faces up to MAX_DOCUMENT_FACE_BYTES (512 MiB of distinct
file bytes), least recently drawn out first; past the same budget of
withdrawn files egui's fonts are made again to free them.
- The picker's coverage check reads the registry's loaded bytes instead of
the file; traits come from FaceInfo, which the scan now fills with
sFamilyClass, PANOSE and the post fixed-pitch flag.
- Catalog::file_bytes shares one read per file across threads.