If node already has a layout object it should leave it alone, this just means allocating new Rect like objects each time this is called even if layout has been done before.
Also if you define node.style.measure it clears the children property, but that's bad if the measure function wanted to be able to look at the children or call layout on them.
If node already has a layout object it should leave it alone, this just means allocating new Rect like objects each time this is called even if layout has been done before.
Also if you define node.style.measure it clears the children property, but that's bad if the measure function wanted to be able to look at the children or call layout on them.