| Index: Source/WebCore/dom/ContainerNode.cpp
|
| ===================================================================
|
| --- Source/WebCore/dom/ContainerNode.cpp (revision 146890)
|
| +++ Source/WebCore/dom/ContainerNode.cpp (working copy)
|
| @@ -138,10 +138,8 @@
|
|
|
| ContainerNode::~ContainerNode()
|
| {
|
| - if (documentInternal()) {
|
| - if (AXObjectCache* cache = documentInternal()->existingAXObjectCache())
|
| - cache->remove(this);
|
| - }
|
| + if (AXObjectCache::accessibilityEnabled() && documentInternal() && documentInternal()->axObjectCacheExists())
|
| + documentInternal()->axObjectCache()->remove(this);
|
|
|
| removeDetachedChildren();
|
| }
|
|
|