| 519 | } |
| 520 | |
| 521 | Ref<ViewNode> ViewNodeTree::getViewNode(RawViewNodeId id) { |
| 522 | const auto& iterator = _rawViewNodes.find(id); |
| 523 | if (iterator == _rawViewNodes.end()) { |
| 524 | return nullptr; |
| 525 | } |
| 526 | return iterator->second; |
| 527 | } |
| 528 | |
| 529 | void ViewNodeTree::setViewToRootViewNode(const Ref<ViewNode>& rootViewNode, const Ref<View>& view) { |
| 530 | auto& viewTransactionScope = getCurrentViewTransactionScope(); |