| 182 | } |
| 183 | |
| 184 | void 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 | |
| 195 | bool Node::removeChild(Node* child) { |
| 196 | auto p = std::find(children_.begin(), children_.end(), child); |
no outgoing calls