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

Unified Diff: third_party/WebKit/Source/core/dom/ContainerNode.cpp

Issue 2835223003: Use kCamelCase in Document::ListenerType enum (Closed)
Patch Set: renamed Created 3 years, 8 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
« no previous file with comments | « third_party/WebKit/Source/core/dom/CharacterData.cpp ('k') | third_party/WebKit/Source/core/dom/Document.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/ContainerNode.cpp
diff --git a/third_party/WebKit/Source/core/dom/ContainerNode.cpp b/third_party/WebKit/Source/core/dom/ContainerNode.cpp
index 5f0ba65d444cc3175df05a3c43d6e43a5cffb367..1fbbcc5bab4e48aea88169095da7df6e6a24e997 100644
--- a/third_party/WebKit/Source/core/dom/ContainerNode.cpp
+++ b/third_party/WebKit/Source/core/dom/ContainerNode.cpp
@@ -1237,13 +1237,13 @@ static void DispatchChildInsertionEvents(Node& child) {
Document* document = &child.GetDocument();
if (c->parentNode() &&
- document->HasListenerType(Document::DOMNODEINSERTED_LISTENER))
+ document->HasListenerType(Document::kDOMNodeInsertedListener))
c->DispatchScopedEvent(MutationEvent::Create(
EventTypeNames::DOMNodeInserted, true, c->parentNode()));
// dispatch the DOMNodeInsertedIntoDocument event to all descendants
if (c->isConnected() && document->HasListenerType(
- Document::DOMNODEINSERTEDINTODOCUMENT_LISTENER)) {
+ Document::kDOMNodeInsertedIntoDocumentListener)) {
for (; c; c = NodeTraversal::Next(*c, &child))
c->DispatchScopedEvent(MutationEvent::Create(
EventTypeNames::DOMNodeInsertedIntoDocument, false));
@@ -1267,7 +1267,7 @@ static void DispatchChildRemovalEvents(Node& child) {
// Dispatch pre-removal mutation events.
if (c->parentNode() &&
- document->HasListenerType(Document::DOMNODEREMOVED_LISTENER)) {
+ document->HasListenerType(Document::kDOMNodeRemovedListener)) {
NodeChildRemovalTracker scope(child);
c->DispatchScopedEvent(MutationEvent::Create(EventTypeNames::DOMNodeRemoved,
true, c->parentNode()));
@@ -1275,7 +1275,7 @@ static void DispatchChildRemovalEvents(Node& child) {
// Dispatch the DOMNodeRemovedFromDocument event to all descendants.
if (c->isConnected() && document->HasListenerType(
- Document::DOMNODEREMOVEDFROMDOCUMENT_LISTENER)) {
+ Document::kDOMNodeRemovedFromDocumentListener)) {
NodeChildRemovalTracker scope(child);
for (; c; c = NodeTraversal::Next(*c, &child))
c->DispatchScopedEvent(MutationEvent::Create(
« no previous file with comments | « third_party/WebKit/Source/core/dom/CharacterData.cpp ('k') | third_party/WebKit/Source/core/dom/Document.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698