| 790 | if (viewNode == nullptr) { |
| 791 | return 0; |
| 792 | } |
| 793 | |
| 794 | jint handled = 0; |
| 795 | |
| 796 | auto* viewNodeTree = viewNode->getViewNodeTree(); |
| 797 | |
| 798 | if (viewNodeTree == nullptr) { |
| 799 | // TODO: is this a valid state? |
| 800 | return 0; |
| 801 | } |
| 802 | |
| 803 | viewNodeTree->withLock([&]() { |
| 804 | auto& viewTransactionScope = viewNodeTree->getCurrentViewTransactionScope(); |
| 805 | if (action == kActionEnsureFrameIsVisibleWithinParentScrolls) { |
| 806 | auto animated = static_cast<bool>(param1); |
| 807 | viewNode->ensureFrameIsVisibleWithinParentScrolls(viewTransactionScope, animated); |
| 808 | handled = 0; |
nothing calls this directly
no test coverage detected