Repository navigation
Remove the breakout re-landing watchers - #2925
Merged
Merged
Conversation
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]>
leaf-agent
approved these changes
Oct 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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,releaseHoldersincontent-layout.js, and the holder bookkeepingprepaint.js'sindentsreturned 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/openchange, 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.LeafIndentsinruntime-globals.d.tsnow declares onlychanged, and the kernel is rebuilt.