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

Method cancelAnimation

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

Source from the content-addressed store, hash-verified

451 trigger += attributeNames[i].slowToString();
452 }
453 if (invalidateMeasure) {
454 trigger += ",invalidateMeasure";
455 }
456 scheduleExclusiveUpdate(
457 [this, attributeNames, invalidateMeasure]() {
458 auto& attributesManager = getViewManagerContext()->getAttributesManager();
459 auto attributeIds = attributesManager.getAttributeIds().getIdsForNames(attributeNames);
460 auto rootViewNode = getRootViewNode();
461 if (rootViewNode != nullptr) {
462 rootViewNode->reapplyAttributesRecursive(
463 getCurrentViewTransactionScope(), attributeIds, invalidateMeasure);
464 }
465 },

Callers

nothing calls this directly

Calls 3

endMethod · 0.65
findMethod · 0.45
cancelAnimatorMethod · 0.45

Tested by

no test coverage detected