many_strips_without_byte_counts_are_fast passed only when chunks()
measured a million strips without byte counts within 20 s. A test-only
counter now records the offsets chunks() sorts and each offset it reads
to find the next larger one. The test allows one read per strip for the
sort and log2(n) + 2 reads per strip for the bisection, and the counter
fails the test as soon as the reads pass that limit. With the next
offset found by a scan of the sorted offsets, the test fails at
22,000,001 reads.
A grid sweeps a content column at a trial width and then at the width it settles on, so a memoized view in it is
measured in two rooms in a pass. Since a view keeps a sizing measure per layout context, both calls take kept measures
in a settled pass, but a sizing replay handed forward nothing: code after the call that reads a text or width the run
handed forward (layout_memory::emit_text, emit_width) found none. In the gallery the card's value-text column was empty
in that pass, so the story column took the whole row and the card's real run differed from its replay (replay audit,
craft-ui-gallery panels::a_selection_change_runs_only_the_panels_that_read_it).
A memoized view's sizing run keeps the texts and widths it handed forward with its measure
(layout_memory::handing_forward, the hand-forwards of views it shows included), and a sizing call that takes the
measure hands them forward again (hand_forward_again), as a real replay does through its journal.
A capped body or a layer with a footer drafts its content at its content height and, when that does not fit, takes the
draft back and lays the content out at its room. A memoized view inside was measured in both contexts, but kept one
sizing slot, and the taken-back draft also undid the measure it wrote: every pass after a change of the content version
around it ran the view's draft measure again although its key, flow and room were unchanged.
Entry::measures keeps up to four sizing measures, keyed by (key, flow, room size), most recently used last. The draft
undo restores everything else (settled, replays, sizes, measuring_pass) and keeps the measures. A real run keeps only
the measures written or taken in its own pass, so content a run showed under an unchanged key never meets a measure of
an earlier pass.
start_rename, reveal and focus_filter_name take effect only in the panel's real run; a measuring run or a replay applies none. The output reports, from Inner::settle, whether the real run took them, so a host keeps a request and passes it again until then.
With joiners now inside an Indic word, the Gujarati pack guard (the
Gujarati block only) turned a word with a ZWJ or ZWNJ away from its
pack, so a pack exception for it was skipped. Gujarati and Hindi now
check the script's letters, marks and joiners (indic::Script::is_letter),
as their rules do, and still need the pack to know the word.
CodeRabbit on #3905.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>