| Index: Source/WebCore/editing/DeleteFromTextNodeCommand.cpp
|
| ===================================================================
|
| --- Source/WebCore/editing/DeleteFromTextNodeCommand.cpp (revision 146890)
|
| +++ Source/WebCore/editing/DeleteFromTextNodeCommand.cpp (working copy)
|
| @@ -57,8 +57,8 @@
|
| return;
|
|
|
| // Need to notify this before actually deleting the text
|
| - if (AXObjectCache* cache = document()->existingAXObjectCache())
|
| - cache->nodeTextChangeNotification(m_node.get(), AXObjectCache::AXTextDeleted, m_offset, m_text);
|
| + if (AXObjectCache::accessibilityEnabled())
|
| + document()->axObjectCache()->nodeTextChangeNotification(m_node.get(), AXObjectCache::AXTextDeleted, m_offset, m_text);
|
|
|
| m_node->deleteData(m_offset, m_count, ec);
|
| }
|
| @@ -72,8 +72,8 @@
|
|
|
| m_node->insertData(m_offset, m_text, IGNORE_EXCEPTION);
|
|
|
| - if (AXObjectCache* cache = document()->existingAXObjectCache())
|
| - cache->nodeTextChangeNotification(m_node.get(), AXObjectCache::AXTextInserted, m_offset, m_text);
|
| + if (AXObjectCache::accessibilityEnabled())
|
| + document()->axObjectCache()->nodeTextChangeNotification(m_node.get(), AXObjectCache::AXTextInserted, m_offset, m_text);
|
| }
|
|
|
| #ifndef NDEBUG
|
|
|