| 37 | } |
| 38 | |
| 39 | void ViewTransactionScope::submit() { |
| 40 | if (_next != nullptr) { |
| 41 | _next->submit(); |
| 42 | } |
| 43 | |
| 44 | auto transaction = std::move(_transaction); |
| 45 | if (transaction != nullptr) { |
| 46 | if (_rootView != nullptr) { |
| 47 | transaction->didUpdateRootView(_rootView, _layoutDidBecomeDirty); |
| 48 | } |
| 49 | |
| 50 | transaction->flush(/* sync */ false); |
| 51 | } |
| 52 | |
| 53 | _layoutDidBecomeDirty = false; |
| 54 | } |
| 55 | |
| 56 | void ViewTransactionScope::flushNow(bool sync) { |
| 57 | if (_next != nullptr) { |
no test coverage detected