| Index: Source/core/dom/Document.cpp
|
| diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
|
| index 1e60754d36d15ddc0fbcf509b857f5b323b46c9f..c498aa4fcaa8918990da8a2356d2db085fe22b35 100644
|
| --- a/Source/core/dom/Document.cpp
|
| +++ b/Source/core/dom/Document.cpp
|
| @@ -3704,6 +3704,16 @@ PassRefPtr<Event> Document::createEvent(const String& eventType, ExceptionState&
|
| return 0;
|
| }
|
|
|
| +PassRefPtr<Event> Document::createEvent(ExceptionState& exceptionState)
|
| +{
|
| + if (!isSVGDocument()) {
|
| + exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, 0));
|
| + return 0;
|
| + }
|
| + // Legacy SVGDocument behavior.
|
| + return createEvent("undefined", exceptionState);
|
| +}
|
| +
|
| void Document::addMutationEventListenerTypeIfEnabled(ListenerType listenerType)
|
| {
|
| if (ContextFeatures::mutationEventsEnabled(this))
|
|
|