Index: Source/WebCore/dom/ContainerNode.cpp |
=================================================================== |
--- Source/WebCore/dom/ContainerNode.cpp (revision 131770) |
+++ Source/WebCore/dom/ContainerNode.cpp (working copy) |
@@ -23,6 +23,7 @@ |
#include "config.h" |
#include "ContainerNode.h" |
+#include "AXObjectCache.h" |
#include "ChildListMutationScope.h" |
#include "ContainerNodeAlgorithms.h" |
#include "DeleteButtonController.h" |
@@ -115,6 +116,9 @@ |
ContainerNode::~ContainerNode() |
{ |
+ if (AXObjectCache::accessibilityEnabled() && documentInternal() && documentInternal()->axObjectCacheExists()) |
+ documentInternal()->axObjectCache()->remove(this); |
+ |
removeAllChildren(); |
} |