| 324 | removeViewFromParent(viewTransactionScope, /*willUpdateViewTree*/ false, /*shouldViewClearViewNode*/ false); |
| 325 | } |
| 326 | |
| 327 | void ViewNode::removeViewFromParent(ViewTransactionScope& viewTransactionScope, bool shouldViewClearViewNode) { |
| 328 | removeViewFromParent(viewTransactionScope, /*willUpdateViewTree*/ false, shouldViewClearViewNode); |
| 329 | } |
| 330 | |
| 331 | void ViewNode::removeViewFromParent(ViewTransactionScope& viewTransactionScope, |
| 332 | bool willUpdateViewTree, |
| 333 | bool shouldViewClearViewNode) { |
| 334 | if (_flags[kViewIncludedInParentFlag]) { |
| 335 | _flags[kViewIncludedInParentFlag] = false; |
| 336 | |
| 337 | if (hasView()) { |
| 338 | const auto& animator = resolveAnimator(nullAnimator()); |
| 339 | |
| 340 | viewTransactionScope.transaction().removeViewFromParent(_view, animator, shouldViewClearViewNode); |
| 341 | |
| 342 | if (willUpdateViewTree) { |
| 343 | setViewTreeNeedsUpdate(); |
| 344 | } |
no test coverage detected