Blink286

Understanding PropagatedData in Blink’s LayoutNG Fragment Tree


Listen Later

In Blink’s LayoutNG engine, PropagatedData serves as a specialized, light-weight container used to carry critical layout information upward through the fragment tree. This garbage-collected object is attached to physical fragments only when necessary, specifically tracking data like sticky positioning, scroll snap areas, initial scroll targets, and animation triggers. By aggregating these details during the building phase, the system ensures that ancestor fragments remain aware of specific states within their subtrees without requiring expensive re-traversals. This architecture maintains a lean memory footprint because the pointer remains null for most fragments that do not contain such data. Ultimately, this mechanism acts as a bridge, allowing subsequent rendering stages like painting and scrolling to access immutable layout results efficiently.

...more
View all episodesView all episodes
Download on the App Store

Blink286By Free Debreuil