react-native/ReactCommon
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
..
cxxreact Fix conditional load usage. 2018-07-14 18:32:20 -07:00
fabric Fabric: Generalizing cloning of YogaLayoutable approach 2018-07-15 16:52:25 -07:00
jschelpers Move conditional logic into corresponding build defs. 2018-06-24 14:46:38 -07:00
jsinspector Fix deprecated glob usage. 2018-06-23 18:33:48 -07:00
microprofiler Migrate Android sources to MIT license header 2018-05-31 15:37:30 -07:00
privatedata Fix deprecated glob usage. 2018-06-23 18:33:48 -07:00
yoga Remove some unnecessary `const float &` uses 2018-07-13 12:48:02 -07:00