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

Method copyChildren

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

Source from the content-addressed store, hash-verified

2945 }
2946
2947 if (_flags[kHasLazyLayoutNeedingCalculationFlag]) {
2948 _flags[kHasLazyLayoutNeedingCalculationFlag] = false;
2949 // One of our child has a dirty lazyLayout that needs to be calculated, so we need to visit it
2950 shouldVisitChildren = true;
2951 }
2952
2953 // Step 3: If we are a lazyLayout, we compute the nested layout if we are visible
2954
2955 if (_flags[kIsLazyLayoutFlag] && getLazyLayoutYogaNode() != nullptr && _flags[kVisibleInViewportFlag]) {
2956 if (updateLazyLayout()) {
2957 didPerformLayoutForChildren = true;
2958 shouldVisitChildren = true;

Callers 2

setIsLazyLayoutMethod · 0.95
TEST_PFunction · 0.80

Calls 3

getChildCountFunction · 0.85
strongSmallRefFunction · 0.85
reserveMethod · 0.45

Tested by 1

TEST_PFunction · 0.64