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

Method findAllNodesWithId

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

Source from the content-addressed store, hash-verified

2966 }
2967 }
2968
2969 if (!shouldVisitChildren) {
2970 return calculatedFrameDidChange;
2971 }
2972
2973 float childrenViewOffsetX = 0.0f;
2974 float childrenViewOffsetY = 0.0f;
2975
2976 if (isLayout()) {
2977 // If we are a layout node, we won't have a view so we need to compute the offset
2978 childrenViewOffsetX = viewOffsetX + _calculatedFrame.x;
2979 childrenViewOffsetY = viewOffsetY + _calculatedFrame.y;
2980 } else if (!hasParent()) {

Callers 1

Calls 2

strongSmallRefFunction · 0.85
hasNodeIdMethod · 0.80

Tested by

no test coverage detected