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

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

Issue 22331005: Clean up accessibility enums for use in Chromium. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Update failing tests, add one missing role 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/DeleteFromTextNodeCommand.cpp
diff --git a/Source/core/editing/DeleteFromTextNodeCommand.cpp b/Source/core/editing/DeleteFromTextNodeCommand.cpp
index e0e52d45cc42b7367cc6684ee843d1a0ca383bec..7a151d155591bfbeaa1106347d7aecdb3607caa4 100644
--- a/Source/core/editing/DeleteFromTextNodeCommand.cpp
+++ b/Source/core/editing/DeleteFromTextNodeCommand.cpp
@@ -28,7 +28,6 @@
#include "bindings/v8/ExceptionState.h"
#include "bindings/v8/ExceptionStatePlaceholder.h"
-#include "core/accessibility/AXObjectCache.h"
#include "core/dom/Document.h"
#include "core/dom/Text.h"
@@ -57,10 +56,6 @@ void DeleteFromTextNodeCommand::doApply()
if (es.hadException())
return;
- // Need to notify this before actually deleting the text
- if (AXObjectCache* cache = document()->existingAXObjectCache())
- cache->nodeTextChangeNotification(m_node.get(), AXObjectCache::AXTextDeleted, m_offset, m_text);
-
m_node->deleteData(m_offset, m_count, es);
}
@@ -72,9 +67,6 @@ void DeleteFromTextNodeCommand::doUnapply()
return;
m_node->insertData(m_offset, m_text, IGNORE_EXCEPTION);
-
- if (AXObjectCache* cache = document()->existingAXObjectCache())
- cache->nodeTextChangeNotification(m_node.get(), AXObjectCache::AXTextInserted, m_offset, m_text);
}
#ifndef NDEBUG

Powered by Google App Engine
This is Rietveld 408576698