summaryrefslogtreecommitdiffstats
path: root/WebCore/editing/DeleteFromTextNodeCommand.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/editing/DeleteFromTextNodeCommand.cpp')
-rw-r--r--WebCore/editing/DeleteFromTextNodeCommand.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/WebCore/editing/DeleteFromTextNodeCommand.cpp b/WebCore/editing/DeleteFromTextNodeCommand.cpp
index f1d79af..fe572e1 100644
--- a/WebCore/editing/DeleteFromTextNodeCommand.cpp
+++ b/WebCore/editing/DeleteFromTextNodeCommand.cpp
@@ -26,6 +26,7 @@
#include "config.h"
#include "DeleteFromTextNodeCommand.h"
+#include "AXObjectCache.h"
#include "Text.h"
namespace WebCore {
@@ -53,6 +54,10 @@ void DeleteFromTextNodeCommand::doApply()
if (ec)
return;
+ // Need to notify this before actually deleting the text
+ if (AXObjectCache::accessibilityEnabled())
+ document()->axObjectCache()->nodeTextChangeNotification(m_node->renderer(), AXObjectCache::AXTextDeleted, m_offset, m_count);
+
m_node->deleteData(m_offset, m_count, ec);
}
@@ -65,6 +70,9 @@ void DeleteFromTextNodeCommand::doUnapply()
ExceptionCode ec;
m_node->insertData(m_offset, m_text, ec);
+
+ if (AXObjectCache::accessibilityEnabled())
+ document()->axObjectCache()->nodeTextChangeNotification(m_node->renderer(), AXObjectCache::AXTextInserted, m_offset, m_count);
}
} // namespace WebCore