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

Method markDirty

valdi/src/valdi/runtime/Attributes/ViewNodeAttribute.cpp:423–433  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

421 if (!pendingAnimatedValue->success()) {
422 return pendingAnimatedValue->moveError();
423 }
424
425 return _handler->applyAttribute(viewTransactionScope, *viewNode, pendingAnimatedValue->value(), nullptr);
426}
427
428void ViewNodeAttribute::markDirty() {
429 _appliedValueDirty = true;
430
431 if (_hasSingleAttribute) {
432 getSingleAttributeValue().preprocessedValue = Result<PreprocessedValue>();
433 } else if (_hasAttributeCollection) {
434 for (auto& it : getAttributeValueCollection().values) {
435 it.preprocessedValue = Result<PreprocessedValue>();
436 }

Callers 2

reapplyAttributeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected