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

Method removeChild

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

Source from the content-addressed store, hash-verified

193}
194
195bool Node::removeChild(Node* child) {
196 auto p = std::find(children_.begin(), children_.end(), child);
197 if (p != children_.end()) {
198 if (child->style().display() == Display::Contents) {
199 contentsChildrenCount_--;
200 }
201
202 children_.erase(p);
203 return true;
204 }
205 return false;
206}
207
208void Node::removeChild(size_t index) {
209 if (children_[index]->style().display() == Display::Contents) {

Callers 9

chunk-vendors.jsFile · 0.45
addStyleFunction · 0.45
applyToSingletonTagFunction · 0.45
applyToTagFunction · 0.45
removeChildFunction · 0.45
removeNodeFunction · 0.45
updateDOMPropsFunction · 0.45
YGNodeFreeFunction · 0.45
YGNodeRemoveChildFunction · 0.45

Calls 4

endMethod · 0.65
findFunction · 0.50
beginMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected