| 309 | } |
| 310 | |
| 311 | void ViewNodeTree::setLayoutSpecs(Size layoutSize, LayoutDirection layoutDirection) { |
| 312 | auto lockGuard = lock(); |
| 313 | _hasLayoutSpecs = true; |
| 314 | _layoutSpecsDirty = false; |
| 315 | |
| 316 | if (_layoutSize != layoutSize) { |
| 317 | _layoutSize = layoutSize; |
| 318 | _layoutDirty = true; |
| 319 | } |
| 320 | |
| 321 | if (_layoutDirection != layoutDirection) { |
| 322 | _layoutDirection = layoutDirection; |
| 323 | _layoutDirty = true; |
| 324 | } |
| 325 | |
| 326 | #if VALDI_DEBUG_TREE_UPDATES |
| 327 | scheduleExclusiveUpdate([this]() { this->performUpdates(); }, DispatchFunction(), "setLayoutSpecs"); |
| 328 | #else |
| 329 | scheduleExclusiveUpdate([this]() { this->performUpdates(); }, DispatchFunction()); |
| 330 | #endif |
| 331 | } |
| 332 | |
| 333 | void ViewNodeTree::setViewport(std::optional<Frame> viewport) { |
| 334 | auto lockGuard = lock(); |
nothing calls this directly
no test coverage detected