| 144 | } |
| 145 | |
| 146 | void Node::insertChild(Node* child, size_t index) { |
| 147 | if (child->style().display() == Display::Contents) { |
| 148 | contentsChildrenCount_++; |
| 149 | } |
| 150 | |
| 151 | children_.insert(children_.begin() + static_cast<ptrdiff_t>(index), child); |
| 152 | } |
| 153 | |
| 154 | void Node::setConfig(yoga::Config* config) { |
| 155 | yoga::assertFatal( |
no test coverage detected