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

Unified Diff: Source/core/events/EventTarget.cpp

Issue 307613002: Refine the UseCounters for DOMFocusIn/Out and focusin/out events (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: less wrong Created 6 years, 7 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 | « Source/core/dom/Document.cpp ('k') | Source/core/frame/UseCounter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/events/EventTarget.cpp
diff --git a/Source/core/events/EventTarget.cpp b/Source/core/events/EventTarget.cpp
index 9c78340747d39ca84f2f2f03102685967ab4bc0f..a44b27311d1bbe55c29e8058d41f3aaf5a70feca 100644
--- a/Source/core/events/EventTarget.cpp
+++ b/Source/core/events/EventTarget.cpp
@@ -299,6 +299,12 @@ void EventTarget::fireEventListeners(Event* event, EventTargetData* d, EventList
} else if (event->type() == EventTypeNames::unload) {
if (DOMWindow* executingWindow = this->executingWindow())
UseCounter::count(executingWindow->document(), UseCounter::DocumentUnloadFired);
+ } else if (event->type() == EventTypeNames::DOMFocusIn || event->type() == EventTypeNames::DOMFocusOut) {
+ if (DOMWindow* executingWindow = this->executingWindow())
+ UseCounter::count(executingWindow->document(), UseCounter::DOMFocusInOutEvent);
+ } else if (event->type() == EventTypeNames::focusin || event->type() == EventTypeNames::focusout) {
+ if (DOMWindow* executingWindow = this->executingWindow())
+ UseCounter::count(executingWindow->document(), UseCounter::FocusInOutEvent);
}
size_t i = 0;
« no previous file with comments | « Source/core/dom/Document.cpp ('k') | Source/core/frame/UseCounter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698