Lines Matching refs:node
52 for (Node* node = root; node; node = NodeTraversal::next(node, root)) {
53 updateTreeScope(node);
56 moveNodeToNewDocument(node, &oldDocument, &newDocument);
57 else if (node->hasRareData()) {
58 NodeRareData* rareData = node->rareData();
63 if (!node->isElementNode())
66 if (node->hasSyntheticAttrChildNodes()) {
67 const Vector<RefPtr<Attr>>& attrs = toElement(node)->attrNodeList();
72 if (ShadowRoot* shadow = node->shadowRoot()) {
85 for (Node* node = shadowRoot; node; node = NodeTraversal::next(node, shadowRoot)) {
86 moveNodeToNewDocument(node, oldDocument, newDocument);
87 if (ShadowRoot* shadow = node->shadowRoot())
104 inline void TreeScopeAdopter::updateTreeScope(Node* node) const
106 ASSERT(!node->isTreeScope());
107 ASSERT(&node->treeScope() == &m_oldScope);
108 node->setTreeScope(m_newScope);
111 inline void TreeScopeAdopter::moveNodeToNewDocument(Node* node, Document* oldDocument, Document* newDocument) const
113 ASSERT(!node->inDocument() || oldDocument != newDocument);
118 if (node->hasRareData()) {
119 NodeRareData* rareData = node->rareData();
125 oldDocument->moveNodeIteratorsToNewDocument(node, newDocument);
127 if (node->isShadowRoot())
128 toShadowRoot(node)->setDocumentScope(newDocument);
135 node->didMoveToNewDocument(oldDocument);