Index: Source/WebCore/dom/Node.cpp |
=================================================================== |
--- Source/WebCore/dom/Node.cpp (revision 141145) |
+++ Source/WebCore/dom/Node.cpp (working copy) |
@@ -2099,6 +2099,9 @@ |
{ |
TreeScopeAdopter::ensureDidMoveToNewDocumentWasCalled(oldDocument); |
+ if (AXObjectCache::accessibilityEnabled() && oldDocument && oldDocument->axObjectCacheExists()) |
+ oldDocument->axObjectCache()->remove(this); |
+ |
// FIXME: Event listener types for this node should be set on the new owner document here. |
const EventListenerVector& wheelListeners = getEventListeners(eventNames().mousewheelEvent); |