Lines Matching defs:node
55 for (Node* node = root; node; node = NodeTraversal::next(node, root)) {
56 updateTreeScope(node);
59 moveNodeToNewDocument(node, oldDocument, newDocument);
60 else if (node->hasRareData()) {
61 NodeRareData* rareData = node->rareData();
66 if (!node->isElementNode())
69 if (node->hasSyntheticAttrChildNodes()) {
70 const Vector<RefPtr<Attr> >& attrs = toElement(node)->attrNodeList();
75 if (ShadowRoot* shadow = node->shadowRoot()) {
87 for (Node* node = root; node; node = NodeTraversal::next(node, root)) {
88 moveNodeToNewDocument(node, oldDocument, newDocument);
89 if (ShadowRoot* shadow = node->shadowRoot())
106 inline void TreeScopeAdopter::updateTreeScope(Node* node) const
108 ASSERT(!node->isTreeScope());
109 ASSERT(node->treeScope() == m_oldScope);
112 node->setTreeScope(m_newScope);
115 inline void TreeScopeAdopter::moveNodeToNewDocument(Node* node, Document* oldDocument, Document* newDocument) const
117 ASSERT(!node->inDocument() || oldDocument != newDocument);
119 if (node->hasRareData()) {
120 NodeRareData* rareData = node->rareData();
126 oldDocument->moveNodeIteratorsToNewDocument(node, newDocument);
128 if (node->isShadowRoot())
129 toShadowRoot(node)->setDocumentScope(newDocument);
136 node->didMoveToNewDocument(oldDocument);