MCPcopy Create free account
hub / github.com/Snapchat/Valdi / requestLayout

Method requestLayout

snap_drawing/src/snap_drawing/cpp/Layers/Layer.cpp:644–654  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

642}
643
644void 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
656void Layer::layoutIfNeeded() {
657 if (_needsLayout) {

Callers

nothing calls this directly

Calls 1

lockMethod · 0.45

Tested by

no test coverage detected