Index: Source/core/events/EventTarget.cpp |
diff --git a/Source/core/events/EventTarget.cpp b/Source/core/events/EventTarget.cpp |
index 56c3fbe0630c0c03d66b47b1820ef90c65830461..6e96b47c6cdb629eaa22301ecbc053100dc9a0d7 100644 |
--- a/Source/core/events/EventTarget.cpp |
+++ b/Source/core/events/EventTarget.cpp |
@@ -34,7 +34,6 @@ |
#include "RuntimeEnabledFeatures.h" |
#include "bindings/v8/DOMWrapperWorld.h" |
-#include "bindings/v8/ExceptionMessages.h" |
#include "bindings/v8/ExceptionState.h" |
#include "core/events/Event.h" |
#include "core/dom/ExceptionCode.h" |
@@ -158,15 +157,15 @@ bool EventTarget::clearAttributeEventListener(const AtomicString& eventType, DOM |
bool EventTarget::dispatchEvent(PassRefPtr<Event> event, ExceptionState& exceptionState) |
{ |
if (!event) { |
- exceptionState.throwDOMException(InvalidStateError, ExceptionMessages::failedToExecute("dispatchEvent", "EventTarget", "The event provided is null.")); |
+ exceptionState.throwDOMException(InvalidStateError, "The event provided is null."); |
return false; |
} |
if (event->type().isEmpty()) { |
- exceptionState.throwDOMException(InvalidStateError, ExceptionMessages::failedToExecute("dispatchEvent", "EventTarget", "The event provided is uninitialized.")); |
+ exceptionState.throwDOMException(InvalidStateError, "The event provided is uninitialized."); |
return false; |
} |
if (event->isBeingDispatched()) { |
- exceptionState.throwDOMException(InvalidStateError, ExceptionMessages::failedToExecute("dispatchEvent", "EventTarget", "The event is already being dispatched.")); |
+ exceptionState.throwDOMException(InvalidStateError, "The event is already being dispatched."); |
return false; |
} |