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

Unified Diff: Source/core/editing/InsertNodeBeforeCommand.cpp

Issue 22331005: Clean up accessibility enums for use in Chromium. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add forgotten file back Created 7 years, 4 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/core/editing/InsertNodeBeforeCommand.cpp
diff --git a/Source/core/editing/InsertNodeBeforeCommand.cpp b/Source/core/editing/InsertNodeBeforeCommand.cpp
index f2ba9b24da9a14652a07e2fcfebe13f4f3139cef..f6872e7dca64f166c1dcea54bd4ef740258de825 100644
--- a/Source/core/editing/InsertNodeBeforeCommand.cpp
+++ b/Source/core/editing/InsertNodeBeforeCommand.cpp
@@ -27,7 +27,6 @@
#include "core/editing/InsertNodeBeforeCommand.h"
#include "bindings/v8/ExceptionStatePlaceholder.h"
-#include "core/accessibility/AXObjectCache.h"
#include "core/dom/Document.h"
namespace WebCore {
@@ -55,9 +54,6 @@ void InsertNodeBeforeCommand::doApply()
ASSERT(parent->isContentEditable(Node::UserSelectAllIsAlwaysNonEditable));
parent->insertBefore(m_insertChild.get(), m_refChild.get(), IGNORE_EXCEPTION);
-
- if (AXObjectCache* cache = document()->existingAXObjectCache())
- cache->nodeTextChangeNotification(m_insertChild.get(), AXObjectCache::AXTextInserted, 0, m_insertChild->nodeValue());
}
void InsertNodeBeforeCommand::doUnapply()
@@ -65,10 +61,6 @@ void InsertNodeBeforeCommand::doUnapply()
if (!m_insertChild->isContentEditable(Node::UserSelectAllIsAlwaysNonEditable))
return;
- // Need to notify this before actually deleting the text
- if (AXObjectCache* cache = document()->existingAXObjectCache())
- cache->nodeTextChangeNotification(m_insertChild.get(), AXObjectCache::AXTextDeleted, 0, m_insertChild->nodeValue());
-
m_insertChild->remove(IGNORE_EXCEPTION);
}
« no previous file with comments | « Source/core/editing/InsertIntoTextNodeCommand.cpp ('k') | Source/testing/runner/AccessibilityUIElementChromium.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698