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

Unified Diff: Source/core/dom/Document.cpp

Issue 23483045: Revert "Switch MutationEvents UseCounter to use countDeprecation." (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 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 | « LayoutTests/svg/custom/use-mutation-event-crash-expected.txt ('k') | Source/core/page/UseCounter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Document.cpp
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
index 06606dcbf1050eae0b303fbb3d4e4230347a1916..72955584b9350eb3231be22bc7ccf5359d6daeda 100644
--- a/Source/core/dom/Document.cpp
+++ b/Source/core/dom/Document.cpp
@@ -3766,22 +3766,22 @@ void Document::addMutationEventListenerTypeIfEnabled(ListenerType listenerType)
void Document::addListenerTypeIfNeeded(const AtomicString& eventType)
{
if (eventType == eventNames().DOMSubtreeModifiedEvent) {
- UseCounter::countDeprecation(this, UseCounter::DOMSubtreeModifiedEvent);
+ UseCounter::count(this, UseCounter::DOMSubtreeModifiedEvent);
addMutationEventListenerTypeIfEnabled(DOMSUBTREEMODIFIED_LISTENER);
} else if (eventType == eventNames().DOMNodeInsertedEvent) {
- UseCounter::countDeprecation(this, UseCounter::DOMNodeInsertedEvent);
+ UseCounter::count(this, UseCounter::DOMNodeInsertedEvent);
addMutationEventListenerTypeIfEnabled(DOMNODEINSERTED_LISTENER);
} else if (eventType == eventNames().DOMNodeRemovedEvent) {
- UseCounter::countDeprecation(this, UseCounter::DOMNodeRemovedEvent);
+ UseCounter::count(this, UseCounter::DOMNodeRemovedEvent);
addMutationEventListenerTypeIfEnabled(DOMNODEREMOVED_LISTENER);
} else if (eventType == eventNames().DOMNodeRemovedFromDocumentEvent) {
- UseCounter::countDeprecation(this, UseCounter::DOMNodeRemovedFromDocumentEvent);
+ UseCounter::count(this, UseCounter::DOMNodeRemovedFromDocumentEvent);
addMutationEventListenerTypeIfEnabled(DOMNODEREMOVEDFROMDOCUMENT_LISTENER);
} else if (eventType == eventNames().DOMNodeInsertedIntoDocumentEvent) {
- UseCounter::countDeprecation(this, UseCounter::DOMNodeInsertedIntoDocumentEvent);
+ UseCounter::count(this, UseCounter::DOMNodeInsertedIntoDocumentEvent);
addMutationEventListenerTypeIfEnabled(DOMNODEINSERTEDINTODOCUMENT_LISTENER);
} else if (eventType == eventNames().DOMCharacterDataModifiedEvent) {
- UseCounter::countDeprecation(this, UseCounter::DOMCharacterDataModifiedEvent);
+ UseCounter::count(this, UseCounter::DOMCharacterDataModifiedEvent);
addMutationEventListenerTypeIfEnabled(DOMCHARACTERDATAMODIFIED_LISTENER);
} else if (eventType == eventNames().overflowchangedEvent) {
addListenerType(OVERFLOWCHANGED_LISTENER);
« no previous file with comments | « LayoutTests/svg/custom/use-mutation-event-crash-expected.txt ('k') | Source/core/page/UseCounter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698