MCPcopy Create free account
hub / github.com/Snapchat/Valdi / destroyYogaNode

Function destroyYogaNode

valdi/src/valdi/runtime/Context/ViewNode.cpp:55–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53namespace Valdi {
54
55YGSize ygMeasureYoga(YGNodeConstRef node, float width, YGMeasureMode widthMode, float height, YGMeasureMode heightMode);
56void ygDirtiedCallback(YGNodeConstRef node);
57
58void destroyYogaNode(YGNode* yogaNode) {
59 if (yogaNode == nullptr) {
60 return;
61 }
62 auto* node = facebook::yoga::resolveRef(yogaNode);
63 node->setContext(nullptr);
64 node->setDirtiedFunc(nullptr);
65 node->setMeasureFunc(nullptr);
66 YGNodeFree(yogaNode);
67}

Callers 2

destroyNodeMethod · 0.85
~ViewNodeMethod · 0.85

Calls 4

YGNodeFreeFunction · 0.85
setMeasureFuncMethod · 0.80
resolveRefFunction · 0.50
setContextMethod · 0.45

Tested by

no test coverage detected