Index: Source/WebCore/rendering/RenderWidget.cpp |
=================================================================== |
--- Source/WebCore/rendering/RenderWidget.cpp (revision 146890) |
+++ Source/WebCore/rendering/RenderWidget.cpp (working copy) |
@@ -102,9 +102,9 @@ |
if (RenderView* v = view()) |
v->removeWidget(this); |
- if (AXObjectCache* cache = document()->existingAXObjectCache()) { |
- cache->childrenChanged(this->parent()); |
- cache->remove(this); |
+ if (AXObjectCache::accessibilityEnabled()) { |
+ document()->axObjectCache()->childrenChanged(this->parent()); |
+ document()->axObjectCache()->remove(this); |
} |
setWidget(0); |