| 1579 | // our node to update the children indexer |
| 1580 | setCalculatedViewportHasChildNeedsUpdate(); |
| 1581 | } |
| 1582 | } |
| 1583 | |
| 1584 | void ViewNode::removeFromParent(ViewTransactionScope& viewTransactionScope) { |
| 1585 | if (!hasParent()) { |
| 1586 | return; |
| 1587 | } |
| 1588 | auto parent = getParent(); |
| 1589 | auto previousParentManagedChildFrames = parentManagesChildFrames(); |
| 1590 | |
| 1591 | auto* owner = YGNodeGetOwner(_yogaNode); |
| 1592 | if (owner != nullptr) { |
| 1593 | YGNodeRemoveChild(owner, _yogaNode); |
| 1594 | } |
| 1595 | |
| 1596 | removeViewFromParent(viewTransactionScope); |
| 1597 | |
| 1598 | parent->onChildrenChanged(); |
no test coverage detected