| 401 | } |
| 402 | |
| 403 | void Node::cloneContentsChildrenIfNeeded() { |
| 404 | size_t i = 0; |
| 405 | for (Node*& child : children_) { |
| 406 | if (child->style().display() == Display::Contents && |
| 407 | child->getOwner() != this) { |
| 408 | child = resolveRef(config_->cloneNode(child, this, i)); |
| 409 | child->setOwner(this); |
| 410 | child->cloneChildrenIfNeeded(); |
| 411 | } |
| 412 | i += 1; |
| 413 | } |
| 414 | } |
| 415 | |
| 416 | void Node::markDirtyAndPropagate() { |
| 417 | if (!isDirty_) { |
no test coverage detected