You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[8/16] refactor(painter): remove body blocks/measures from DomPainterInput (#2820)
* refactor(layout): lift page metadata into ResolvedPage
* refactor(layout): lift fragment metadata into resolved paint items
Add pmStart, pmEnd, continuesFromPrev, continuesOnNext, markerWidth,
and metadata fields to resolved paint item types. Populate them in
the resolvers and update the painter to prefer resolved item data
over legacy Fragment reads with fallbacks.
* refactor(layout): pre-compute SDT container keys in resolved layout
* refactor(layout): pre-compute paragraph border data in resolved layout
* refactor(layout): move change detection into resolved layout stage
* refactor(layout): lift paragraph and list-item block/measure into resolved items
* refactor(painter): extract block/measure resolution helper
* refactor(painter): remove body blocks/measures from DomPainterInput
Body block and measure data now flows exclusively through the resolved
layout. The painter only builds a blockLookup from header/footer data,
which is the last remaining fallback surface for fragments that do not
yet have a resolved path. Complex-transaction rebuild detection now
walks the resolved layout items directly instead of iterating the body
blockLookup.
The legacy createDomPainter wrapper derives a resolved layout from
its legacyState blocks/measures on the fly so the benchmark path and
direct createDomPainter(options).paint(Layout) callers keep working
without setResolvedLayout.
* fix: dompainter body input contract on first paint
0 commit comments