| 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);
|
|
|