| 891 | } |
| 892 | |
| 893 | void ViewNodeTree::setParentTree(const Ref<ViewNodeTree>& parentTree) { |
| 894 | if (parentTree == nullptr) { |
| 895 | return; |
| 896 | } |
| 897 | |
| 898 | for (const auto& it : parentTree->_viewFactories) { |
| 899 | if (getViewFactory(it.first) == nullptr) { |
| 900 | registerLocalViewFactory(it.first, it.second); |
| 901 | } |
| 902 | } |
| 903 | } |
| 904 | |
| 905 | ViewTransactionScope& ViewNodeTree::getCurrentViewTransactionScope() { |
| 906 | const auto& ref = getCurrentViewTransactionScopeRef(); |