react-native/ReactCommon/fabric
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
..
activityindicator Fix conditional load usage. 2018-07-14 18:32:20 -07:00
attributedstring Fix conditional load usage. 2018-07-14 18:32:20 -07:00
components Fix conditional load usage. 2018-07-14 18:32:20 -07:00
core Fix conditional load usage. 2018-07-14 18:32:20 -07:00
debug Fix conditional load usage. 2018-07-14 18:32:20 -07:00
graphics Fix conditional load usage. 2018-07-14 18:32:20 -07:00
imagemanager Fix conditional load usage. 2018-07-14 18:32:20 -07:00
sample Fabric: Introducing `ContextContainer` 2018-06-22 07:32:49 -07:00
scrollview Fix conditional load usage. 2018-07-14 18:32:20 -07:00
text Fix conditional load usage. 2018-07-14 18:32:20 -07:00
textlayoutmanager Fix conditional load usage. 2018-07-14 18:32:20 -07:00
uimanager Fabric: Generalizing cloning of YogaLayoutable approach 2018-07-15 16:52:25 -07:00
view Fabric: Generalizing cloning of YogaLayoutable approach 2018-07-15 16:52:25 -07:00