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

Method setPreserveScrollPosition

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

Source from the content-addressed store, hash-verified

3275 if (changed) {
3276 handleCSSChange(_cssAttributesManager.attributeChanged(attributeId));
3277 }
3278
3279 return changed;
3280 }
3281}
3282
3283void ViewNode::reapplyAttributesRecursive(ViewTransactionScope& viewTransactionScope,
3284 const std::vector<AttributeId>& attributes,
3285 bool invalidateMeasure) {
3286 if (invalidateMeasure) {
3287 invalidateMeasuredSize();
3288 }
3289
3290 if (_attributesApplier.getBoundAttributes() != nullptr) {
3291 for (const auto& attribute : attributes) {

Callers

nothing calls this directly

Calls 1

refreshPreserveAnchorFunction · 0.85

Tested by

no test coverage detected