alonso.torres 72fb4f8d41 🐛 Restore a reset nested copy's inherited layout item values
Layout item values (margins, sizing, alignment) sync from a layout parent to
its children, not as a shape's own attributes. A reset rooted at a nested
copy head therefore never restored the head's own values: one whose margin
type was overridden kept it while the reset cleared its touched groups.

After a reset, give the head its ref's layout child values when its parent
is the copy of the ref's layout parent, the case in which they are
inherited.

A seed 712 large gate (stale library, program 118) found this; it also
fails on earlier commits. The program regression fails before the fix and
passes after it, with undo and redo. Full common passes lint, JVM,
JavaScript and formatting: JVM 2082 tests / 33907 assertions; JavaScript
2018 / 32562. All six component properties pass 40 programs each at seed
712 in both runtimes.

Compare lower-quantile milliseconds with the saved baseline; keep that
baseline unchanged. The machine/JVM warning makes ratios rough. No world
is flagged.

World                      Baseline       Now    Ratio
Main into 10 copies           1.790     0.909     0.51
Main into 100 copies         15.415     8.804     0.57
Main into 1000 copies       153.086    88.560     0.58
Three nesting levels         35.215    18.272     0.52
Dependency chain             68.931    35.558     0.52
Library update               83.083    45.079     0.54
Many plain shapes             4.837     2.104     0.43
Variant switch               32.052    19.574     0.61

AI-assisted-by: claude-opus-5-5
2026-11-18 10:29:45 +01:00
..
2022-11-08 13:02:14 +01:00