LithoLayoutContext
Wraps objects which should only be available for the duration of a LayoutState, to access them in other classes such as ComponentContext during layout state calculation. When the layout calculation finishes, the LayoutState reference is nullified. Using a wrapper instead of passing the instances directly helps with clearing out the reference from all objects that hold on to it, without having to keep track of all these objects to clear out the references.
Constructors
Properties
Natural sizes captured for every reflow node this commit (changed and unchanged), keyed by LithoNode.transitionGlobalKey; the commit itself is pinned to the previous/in-flight size. StyleTransitionsExtension reconciles each against the live store target at mount, so a background walk that read a stale target cannot make the wrong retarget decision. Null when the tree declares no reflow node, or when every reflow node was driving its own animation frame.
Functions
Records a Spec-generated EventHandler. This EventHandlers are an output of the calculation and will be used by EventHandlersController to rebind existing EventHandlers.