| 344 | } |
| 345 | |
| 346 | void ViewNodeTree::onLayoutDirty() { |
| 347 | _layoutDirty = true; |
| 348 | _layoutDirtyCounter++; |
| 349 | |
| 350 | if (!_layoutSpecsDirty && !_retainsLayoutSpecsOnInvalidateLayout) { |
| 351 | _layoutSpecsDirty = true; |
| 352 | |
| 353 | if (_rootView != nullptr) { |
| 354 | getCurrentViewTransactionScope().transaction().invalidateViewLayout(_rootView); |
| 355 | } |
| 356 | } |
| 357 | } |
| 358 | |
| 359 | void ViewNodeTree::onRootViewNodeNeedsUpdate() { |
| 360 | schedulePerformUpdates(); |