Index: third_party/WebKit/Source/core/editing/spellcheck/SpellCheckRequester.cpp |
diff --git a/third_party/WebKit/Source/core/editing/spellcheck/SpellCheckRequester.cpp b/third_party/WebKit/Source/core/editing/spellcheck/SpellCheckRequester.cpp |
index b37a5d86c095894551447c485c8b0674d710e165..048e6587ff93c5562a9a85a0c4b67ed8a85bec49 100644 |
--- a/third_party/WebKit/Source/core/editing/spellcheck/SpellCheckRequester.cpp |
+++ b/third_party/WebKit/Source/core/editing/spellcheck/SpellCheckRequester.cpp |
@@ -25,6 +25,7 @@ |
#include "core/editing/spellcheck/SpellCheckRequester.h" |
+#include "core/dom/AXObjectCache.h" |
#include "core/dom/Document.h" |
#include "core/dom/Node.h" |
#include "core/editing/EditingUtilities.h" |
@@ -284,6 +285,7 @@ void SpellCheckRequester::didCheckSucceed(int sequence, const Vector<TextCheckin |
} |
} |
didCheck(sequence, results); |
+ reportDocumentMarkersChangeToAccessibility(); |
} |
void SpellCheckRequester::didCheckCancel(int sequence) |
@@ -292,6 +294,17 @@ void SpellCheckRequester::didCheckCancel(int sequence) |
didCheck(sequence, results); |
} |
+void SpellCheckRequester::reportDocumentMarkersChangeToAccessibility() const |
+{ |
+ if (!m_processingRequest || !m_processingRequest->isValid()) |
+ return; |
+ |
+ AXObjectCache* axObjectCache = frame().document()->existingAXObjectCache(); |
+ if (!axObjectCache) |
+ return; |
+ axObjectCache->handleEditableTextContentChanged(m_processingRequest->rootEditableElement()); |
dmazzoni
2016/08/25 15:19:04
Please add a new AXObjectCache function specifical
|
+} |
+ |
DEFINE_TRACE(SpellCheckRequester) |
{ |
visitor->trace(m_frame); |