Index: Source/WebCore/rendering/RenderListBox.cpp |
=================================================================== |
--- Source/WebCore/rendering/RenderListBox.cpp (revision 146890) |
+++ Source/WebCore/rendering/RenderListBox.cpp (working copy) |
@@ -166,8 +166,8 @@ |
scrollToRevealSelection(); |
} |
- if (AXObjectCache* cache = document()->existingAXObjectCache()) |
- cache->selectedChildrenChanged(this); |
+ if (AXObjectCache::accessibilityEnabled()) |
+ document()->axObjectCache()->selectedChildrenChanged(this); |
} |
void RenderListBox::layout() |