Skip to content

Remove the breakout re-landing watchers - #2925

Merged
max-sixty merged 1 commit into
mainfrom
agent-a670537d305d331cd
Oct 15, 2026
Merged

max-sixty merged 1 commit into
mainfrom
agent-a670537d305d331cd

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

Removes the per-holder ResizeObserver and per-breakout IntersectionObserver that re-read a breakout's (data-lf-space) placement when page script restyled its holder after load (watchHolders, watchMoves, observeMove, releaseHolders in content-layout.js, and the holder bookkeeping prepaint.js's indents returned for them). They arrived in #2553 and #2635.

What users lose: when page script restyles a breakout's holder after load, the breakout keeps its last placement until the next resize, toggle, chrome layout or revision. Indent measurement itself, and re-reads on insertion or a hidden/open change, stay.

The re-landing tests go with the watchers except the insert case, kept as test_a_breakout_a_revision_inserts_deeper_lands_before_it_paints. It fails with the MutationObserver's read disabled. LeafIndents in runtime-globals.d.ts now declares only changed, and the kernel is rebuilt.

This was written by Claude Code on behalf of max-sixty

Delete the ResizeObserver per indented holder and the IntersectionObserver
per wide block (`data-lf-space`) that content-layout.js kept, with the
holder bookkeeping prepaint.js's indent reading returned for them
(watchHolders, watchMoves, observeMove, releaseHolders). They arrived in
#2553 and #2635.

What users lose: when page script restyles a breakout's holder after load,
the breakout keeps its last placement until the next resize, toggle,
chrome layout or revision. Indent measurement itself, and re-reads on
insertion or a `hidden`/`open` change, stay.

Tests: the class, style, remove and unhold cases of the re-landing test and
the moved-holder test go with the watchers; the insert case stays as
test_a_breakout_a_revision_inserts_deeper_lands_before_it_paints.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@max-sixty
max-sixty merged commit e3ef3ad into main Oct 15, 2026
3 checks passed
@max-sixty
max-sixty deleted the agent-a670537d305d331cd branch October 15, 2026 02:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants