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

Method onMeasure

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

Source from the content-addressed store, hash-verified

1579 // our node to update the children indexer
1580 setCalculatedViewportHasChildNeedsUpdate();
1581 }
1582}
1583
1584void ViewNode::removeFromParent(ViewTransactionScope& viewTransactionScope) {
1585 if (!hasParent()) {
1586 return;
1587 }
1588 auto parent = getParent();
1589 auto previousParentManagedChildFrames = parentManagesChildFrames();
1590
1591 auto* owner = YGNodeGetOwner(_yogaNode);
1592 if (owner != nullptr) {
1593 YGNodeRemoveChild(owner, _yogaNode);
1594 }
1595
1596 removeViewFromParent(viewTransactionScope);
1597
1598 parent->onChildrenChanged();

Callers 1

ygMeasureYogaFunction · 0.45

Calls 2

measureMethod · 0.65
SizeClass · 0.50

Tested by

no test coverage detected