Index: Source/WebCore/html/HTMLTextFormControlElement.cpp |
=================================================================== |
--- Source/WebCore/html/HTMLTextFormControlElement.cpp (revision 146890) |
+++ Source/WebCore/html/HTMLTextFormControlElement.cpp (working copy) |
@@ -534,10 +534,9 @@ |
bool textIsChanged = value != innerTextValue(); |
if (textIsChanged || !innerTextElement()->hasChildNodes()) { |
- if (textIsChanged && document() && renderer()) { |
- if (AXObjectCache* cache = document()->existingAXObjectCache()) |
- cache->postNotification(this, AXObjectCache::AXValueChanged, false); |
- } |
+ if (textIsChanged && document() && renderer() && AXObjectCache::accessibilityEnabled()) |
+ document()->axObjectCache()->postNotification(this, AXObjectCache::AXValueChanged, false); |
+ |
innerTextElement()->setInnerText(value, ASSERT_NO_EXCEPTION); |
if (value.endsWith('\n') || value.endsWith('\r')) |