| 58 | } |
| 59 | |
| 60 | void DeferredViewOperations::enqueueResetAttribute(const Valdi::Ref<Valdi::View>& view, |
| 61 | const Valdi::Value& handler, |
| 62 | const Valdi::Ref<Valdi::Animator>& animator) { |
| 63 | if (view == nullptr) { |
| 64 | // Skip enqueueing the reset operation since the View no longer exists |
| 65 | return; |
| 66 | } |
| 67 | |
| 68 | updateActiveAnimator(animator); |
| 69 | |
| 70 | auto& buffer = writeHeader(ViewOperationResetAttribute, false); |
| 71 | write(buffer, handler); |
| 72 | write(buffer, Valdi::Value(view)); |
| 73 | } |
| 74 | |
| 75 | void DeferredViewOperations::updateActiveAnimator(const Valdi::Ref<Valdi::Animator>& animator) { |
| 76 | if (_lastAnimator != animator) { |