| 642 | } |
| 643 | |
| 644 | void Layer::requestLayout(ILayer* /*layer*/) { |
| 645 | if (_needsLayout) { |
| 646 | return; |
| 647 | } |
| 648 | _needsLayout = true; |
| 649 | |
| 650 | auto parent = _parent.lock(); |
| 651 | if (parent != nullptr) { |
| 652 | parent->requestLayout(this); |
| 653 | } |
| 654 | } |
| 655 | |
| 656 | void Layer::layoutIfNeeded() { |
| 657 | if (_needsLayout) { |