react-native/ReactCommon/fabric/view/yoga
Valentin Shergin fcd72bf34a Fabric: Generalizing cloning of YogaLayoutable approach
Summary:
@public
Non-null owner pointer in Yoga node indicates that this node is already being used by some other subtree, so it must be cloned in case of possible (re)layout.
Theoretically, this node must/can be cloned by Yoga right before applying a new layout to this node, but Yoga has a special optimization that uses that fact that Yoga always cloning *all* children of a particular node altogether. This is not true for React; to meet React and Yoga worlds we double check the owner pointer in `addChild` and clone node preliminary if needed.
See also the previous diff for more context.

Reviewed By: mdvacca

Differential Revision: D8709952

fbshipit-source-id: 84ef0faa0f1d9cc9a8136b550cf325bc20508d53
2018-07-15 16:52:25 -07:00
..
YogaLayoutableShadowNode.cpp Fabric: Generalizing cloning of YogaLayoutable approach 2018-07-15 16:52:25 -07:00
YogaLayoutableShadowNode.h Fabric: Subtle changes that make GCC compiler happy 2018-06-29 12:18:27 -07:00
YogaStylableProps.cpp Fabric: New props treatment in `view` module 2018-05-14 16:03:49 -07:00
YogaStylableProps.h Fabric: Modernizing debug printing in View module 2018-05-14 16:03:49 -07:00