| Index: Source/WebCore/dom/NodeRareData.h
|
| ===================================================================
|
| --- Source/WebCore/dom/NodeRareData.h (revision 140739)
|
| +++ Source/WebCore/dom/NodeRareData.h (working copy)
|
| @@ -169,10 +169,15 @@
|
| return m_atomicNameCaches.isEmpty() && m_nameCaches.isEmpty() && m_tagNodeListCacheNS.isEmpty();
|
| }
|
|
|
| - void adoptTreeScope(Document* oldDocument, Document* newDocument)
|
| + void adoptTreeScope()
|
| {
|
| invalidateCaches();
|
| + }
|
|
|
| + void adoptDocument(Document* oldDocument, Document* newDocument)
|
| + {
|
| + invalidateCaches();
|
| +
|
| if (oldDocument != newDocument) {
|
| NodeListAtomicNameCacheMap::const_iterator atomicNameCacheEnd = m_atomicNameCaches.end();
|
| for (NodeListAtomicNameCacheMap::const_iterator it = m_atomicNameCaches.begin(); it != atomicNameCacheEnd; ++it) {
|
|
|