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

Method setChildren

third-party/yoga/src/yoga/node/Node.cpp:184–193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

182}
183
184void Node::setChildren(const std::vector<Node*>& children) {
185 children_ = children;
186
187 contentsChildrenCount_ = 0;
188 for (const auto& child : children) {
189 if (child->style().display() == Display::Contents) {
190 contentsChildrenCount_++;
191 }
192 }
193}
194
195bool Node::removeChild(Node* child) {
196 auto p = std::find(children_.begin(), children_.end(), child);

Callers 3

createElementTreeFunction · 0.80
YGNodeRemoveAllChildrenFunction · 0.80
YGNodeSetChildrenFunction · 0.80

Calls

no outgoing calls

Tested by 1

createElementTreeFunction · 0.64