Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(303)

Unified Diff: Source/WebCore/editing/Editor.cpp

Issue 12703031: Revert 146726 "AXObjectCache gets recreated during document tear..." (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1453/
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
« no previous file with comments | « Source/WebCore/editing/DeleteFromTextNodeCommand.cpp ('k') | Source/WebCore/editing/InsertIntoTextNodeCommand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698