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

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

Issue 22877036: Rename 'prefixed' to 'legacy' in EventTarget::fireEventListeners() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/EventTarget.cpp
diff --git a/Source/core/dom/EventTarget.cpp b/Source/core/dom/EventTarget.cpp
index bbfe7c4e84f54f82005a5be2eaf532bea9db241a..30c6854e64ad4d05fba79b002e9fe59223fbde07 100644
--- a/Source/core/dom/EventTarget.cpp
+++ b/Source/core/dom/EventTarget.cpp
@@ -201,30 +201,30 @@ bool EventTarget::fireEventListeners(Event* event)
if (!d)
return true;
- EventListenerVector* listenerPrefixedVector = 0;
- AtomicString prefixedTypeName = legacyType(event);
- if (!prefixedTypeName.isEmpty())
- listenerPrefixedVector = d->eventListenerMap.find(prefixedTypeName);
+ EventListenerVector* legacyListenersVector = 0;
+ AtomicString legacyTypeName = legacyType(event);
+ if (!legacyTypeName.isEmpty())
+ legacyListenersVector = d->eventListenerMap.find(legacyTypeName);
- EventListenerVector* listenerUnprefixedVector = d->eventListenerMap.find(event->type());
+ EventListenerVector* listenersVector = d->eventListenerMap.find(event->type());
- if (listenerUnprefixedVector)
- fireEventListeners(event, d, *listenerUnprefixedVector);
- else if (listenerPrefixedVector) {
+ if (listenersVector) {
+ fireEventListeners(event, d, *listenersVector);
+ } else if (legacyListenersVector) {
AtomicString unprefixedTypeName = event->type();
- event->setType(prefixedTypeName);
- fireEventListeners(event, d, *listenerPrefixedVector);
+ event->setType(legacyTypeName);
+ fireEventListeners(event, d, *legacyListenersVector);
event->setType(unprefixedTypeName);
}
- if (prefixedTypeName == eventNames().webkitTransitionEndEvent) {
+ if (legacyTypeName == eventNames().webkitTransitionEndEvent) {
if (DOMWindow* executingWindow = this->executingWindow()) {
- if (listenerPrefixedVector) {
- if (listenerUnprefixedVector)
+ if (legacyListenersVector) {
+ if (listenersVector)
UseCounter::count(executingWindow, UseCounter::PrefixedAndUnprefixedTransitionEndEvent);
else
UseCounter::count(executingWindow, UseCounter::PrefixedTransitionEndEvent);
- } else if (listenerUnprefixedVector) {
+ } else if (listenersVector) {
UseCounter::count(executingWindow, UseCounter::UnprefixedTransitionEndEvent);
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698