Lines Matching defs:oldDocument
49 Document& oldDocument = oldScope().document();
51 bool willMoveToNewDocument = oldDocument != newDocument;
52 AXObjectCache* axObjectCache = oldDocument.existingAXObjectCache();
54 oldDocument.incDOMTreeVersion();
62 moveNodeToNewDocument(*node, oldDocument, newDocument);
81 moveTreeToNewDocument(*shadow, oldDocument, newDocument);
90 void TreeScopeAdopter::moveTreeToNewDocument(Node& root, Document& oldDocument, Document& newDocument) const
92 ASSERT(oldDocument != newDocument);
94 moveNodeToNewDocument(*node, oldDocument, newDocument);
99 moveTreeToNewDocument(*attrs[i], oldDocument, newDocument);
103 moveTreeToNewDocument(*shadow, oldDocument, newDocument);
111 void TreeScopeAdopter::ensureDidMoveToNewDocumentWasCalled(Document& oldDocument)
114 ASSERT_UNUSED(oldDocument, oldDocument == oldDocumentDidMoveToNewDocumentWasCalledWith);
130 inline void TreeScopeAdopter::moveNodeToNewDocument(Node& node, Document& oldDocument, Document& newDocument) const
132 ASSERT(oldDocument != newDocument);
137 rareData->nodeLists()->adoptDocument(oldDocument, newDocument);
140 oldDocument.moveNodeIteratorsToNewDocument(node, newDocument);
147 oldDocumentDidMoveToNewDocumentWasCalledWith = &oldDocument;
150 node.didMoveToNewDocument(oldDocument);