| 3548 | if (parent != nullptr) { |
| 3549 | parent->setHasChildWithAccessibilityId(); |
| 3550 | } |
| 3551 | } |
| 3552 | } |
| 3553 | |
| 3554 | void ViewNode::setAllowReuse(bool allowReuse) { |
| 3555 | _flags[kDisallowViewReuseFlag] = !allowReuse; |
| 3556 | |
| 3557 | // A view that already exists can't be swapped for a new one here, but it must not go back into |
| 3558 | // the pool. Setting the attribute back to true doesn't re-enable pooling for that view. |