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

Method onLayoutDirty

valdi/src/valdi/runtime/Context/ViewNodeTree.cpp:346–357  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

344}
345
346void ViewNodeTree::onLayoutDirty() {
347 _layoutDirty = true;
348 _layoutDirtyCounter++;
349
350 if (!_layoutSpecsDirty && !_retainsLayoutSpecsOnInvalidateLayout) {
351 _layoutSpecsDirty = true;
352
353 if (_rootView != nullptr) {
354 getCurrentViewTransactionScope().transaction().invalidateViewLayout(_rootView);
355 }
356 }
357}
358
359void ViewNodeTree::onRootViewNodeNeedsUpdate() {
360 schedulePerformUpdates();

Callers 2

TEST_PFunction · 0.45
ygDirtiedCallbackFunction · 0.45

Calls 1

invalidateViewLayoutMethod · 0.45

Tested by 1

TEST_PFunction · 0.36