| Index: Source/WebCore/editing/Editor.cpp
|
| ===================================================================
|
| --- Source/WebCore/editing/Editor.cpp (revision 146890)
|
| +++ Source/WebCore/editing/Editor.cpp (working copy)
|
| @@ -549,8 +549,8 @@
|
| {
|
| if (AXObjectCache::accessibilityEnabled()) {
|
| Node* node = endingSelection.start().deprecatedNode();
|
| - if (AXObjectCache* cache = m_frame->document()->existingAXObjectCache())
|
| - cache->postNotification(node, AXObjectCache::AXValueChanged, false);
|
| + if (node)
|
| + m_frame->document()->axObjectCache()->postNotification(node, AXObjectCache::AXValueChanged, false);
|
| }
|
|
|
| updateMarkersForWordsAffectedByEditing(true);
|
| @@ -2273,9 +2273,9 @@
|
| RefPtr<Range> newParagraphRange = TextIterator::rangeFromLocationAndLength(toContainerNode(root), paragraphStartIndex, paragraphLength + replacementLength - resultLength);
|
| paragraph = TextCheckingParagraph(TextIterator::subrange(newParagraphRange.get(), resultLocation, replacementLength), newParagraphRange);
|
|
|
| - if (AXObjectCache* cache = m_frame->document()->existingAXObjectCache()) {
|
| + if (AXObjectCache::accessibilityEnabled()) {
|
| if (Element* root = m_frame->selection()->selection().rootEditableElement())
|
| - cache->postNotification(root, AXObjectCache::AXAutocorrectionOccured, true);
|
| + m_frame->document()->axObjectCache()->postNotification(root, AXObjectCache::AXAutocorrectionOccured, true);
|
| }
|
|
|
| selectionChanged = true;
|
|
|