react-native/ReactCommon/fabric/view/yoga
Valentin Shergin caaea38ad9 Fabric: Using unique_ptr for storing YGNode inside YogaLayoutableShadowNode
Summary:
I recently realized (Thanks David!) that we should not use `shared_ptr` for storing YGNode*
because ShadowNode does not share ownership of the Yoga node with anybody.
So the lifecycle of shadow node and yoga node must be synchronized (this is already the case but changing to unique_ptr makes this explicit and a bit more performant).

Reviewed By: fkgozali

Differential Revision: D8030417

fbshipit-source-id: c7f85ea309598d2a5ebfed55b1d182d3fe1336ae
2018-05-18 20:34:18 -07:00
..
YogaLayoutableShadowNode.cpp Fabric: Using unique_ptr for storing YGNode inside YogaLayoutableShadowNode 2018-05-18 20:34:18 -07:00
YogaLayoutableShadowNode.h Fabric: Using unique_ptr for storing YGNode inside YogaLayoutableShadowNode 2018-05-18 20:34:18 -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