Skip to content
Geometry, Immutability, and Caching in LayoutNG Fragments episode artwork

Dec 4, 2025 1 hr 5 min

Geometry, Immutability, and Caching in LayoutNG Fragments

from Blink286 Hosted by Free Debreuil

The provided text describes Blink’s LayoutNG Fragment Tree, an immutable structure that captures the final geometry and layout results, replacing the mutable legacy layout tree. This structure is composed of specialized C++ classes, including NGPhysicalFragment and subclasses like NGPhysicalBoxFragment and NGPhysicalLineBoxFragment, which explicitly represent laid-out components and CSS fragmentation. The design enforces immutability and avoids parent pointers, which are essential constraints that allow successful fragment caching and partial reuse during incremental layout updates. For inline formatting contexts, LayoutNG utilizes a separate, flat list of NGFragmentItem objects and the NGInlineCursor to efficiently build and iterate over line fragments. Downstream processes, such as painting and hit testing, rely on NGPaintFragment wrappers that mirror the physical structure while supplying necessary parent pointers and global coordinate information for traversal. This architectural shift provides a clear, reusable, and predictable foundation that simplifies complex rendering tasks, especially those involving multi-column or paginated content.

Episode details come from the podcast's RSS feed.

Embed this episode

Ready to play

Geometry, Immutability, and Caching in LayoutNG Fragments

0:00 1:05:33

No transcript yet.

Requests help us decide what to transcribe next.

Frequently asked questions

How long is this episode of Blink286?

This episode is 1 hour and 5 minutes long.

When was this Blink286 episode published?

This episode was published on December 4, 2025.

Can I download this Blink286 episode?

Yes. Use the download control on the episode player to save the publisher-provided media file.