Index: Source/core/events/EventTarget.cpp |
diff --git a/Source/core/events/EventTarget.cpp b/Source/core/events/EventTarget.cpp |
index 7ff8763ab12110472bdefcfe5065145d0acc4306..cf2920725d1057e880577e0e05776cef67196fa3 100644 |
--- a/Source/core/events/EventTarget.cpp |
+++ b/Source/core/events/EventTarget.cpp |
@@ -195,7 +195,7 @@ void EventTarget::uncaughtExceptionInEventHandler() |
{ |
} |
-static AtomicString legacyType(const Event* event) |
+static const AtomicString& legacyType(const Event* event) |
{ |
if (event->type() == EventTypeNames::transitionend) |
return EventTypeNames::webkitTransitionEnd; |
@@ -212,7 +212,7 @@ static AtomicString legacyType(const Event* event) |
if (event->type() == EventTypeNames::wheel) |
return EventTypeNames::mousewheel; |
- return emptyString(); |
+ return emptyAtom; |
} |
void EventTarget::countLegacyEvents(const AtomicString& legacyTypeName, EventListenerVector* listenersVector, EventListenerVector* legacyListenersVector) |