Index: Source/core/dom/Document.cpp |
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp |
index 56f72966d6f0716198e97a6b11097247277b5615..7946ac1925c2d1bac469e0a0bbaee3366284bb69 100644 |
--- a/Source/core/dom/Document.cpp |
+++ b/Source/core/dom/Document.cpp |
@@ -3707,6 +3707,16 @@ PassRefPtr<Event> Document::createEvent(const String& eventType, ExceptionState& |
return 0; |
} |
+PassRefPtr<Event> Document::createEvent(ExceptionState& exceptionState) |
+{ |
+ if (!isSVGDocument()) { |
Inactive
2014/01/27 15:48:55
The UseCounter should likely be at the beginning o
|
+ exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, 0)); |
+ return 0; |
+ } |
+ // Legacy SVGDocument behavior. |
+ return createEvent("undefined", exceptionState); |
+} |
+ |
void Document::addMutationEventListenerTypeIfEnabled(ListenerType listenerType) |
{ |
if (ContextFeatures::mutationEventsEnabled(this)) |