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

Function onYogaNodeDirty

snap_drawing/src/snap_drawing/cpp/Layers/FlexboxLayer.cpp:234–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

232}
233
234void onYogaNodeDirty(YGNodeConstRef node) {
235 auto* layer = reinterpret_cast<snap::drawing::Layer*>(facebook::yoga::resolveRef(node)->getContext());
236 if (layer == nullptr) {
237 return;
238 }
239
240 layer->setNeedsLayout();
241}
242
243YGSize onYogaMeasure(
244 YGNodeConstRef node, float width, YGMeasureMode widthMode, float height, YGMeasureMode heightMode) {

Callers

nothing calls this directly

Calls 3

setNeedsLayoutMethod · 0.80
resolveRefFunction · 0.50
getContextMethod · 0.45

Tested by

no test coverage detected