Chromium Code Reviews| 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) |
|
Erik Dahlström (inactive)
2014/01/24 10:30:37
Do we know how much content would break if we remo
Inactive
2014/01/24 14:02:00
I advised Rob to add a UseCounter for this one to
|
| +{ |
| + if (!isSVGDocument()) { |
| + exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, 0)); |
| + return 0; |
| + } |
| + // Legacy SVGDocument behavior. |
| + return createEvent("undefined", exceptionState); |
|
arv (Not doing code reviews)
2014/01/24 14:46:52
Crazy, but OK.
|
| +} |
| + |
| void Document::addMutationEventListenerTypeIfEnabled(ListenerType listenerType) |
| { |
| if (ContextFeatures::mutationEventsEnabled(this)) |