Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(629)

Unified Diff: Source/core/dom/Document.cpp

Issue 254133002: Remove support for Document.createEvent() without argument (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add layout test Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/dom/Document.h ('k') | Source/core/dom/Document.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Document.cpp
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
index 4845c046c1615d0eb68e82d89e5535b9dc29501c..3e99a1bfe7116868bcadeea0b3e41a5c0f80530b 100644
--- a/Source/core/dom/Document.cpp
+++ b/Source/core/dom/Document.cpp
@@ -3856,18 +3856,6 @@ PassRefPtrWillBeRawPtr<Event> Document::createEvent(const String& eventType, Exc
return nullptr;
}
-PassRefPtrWillBeRawPtr<Event> Document::createEvent(ExceptionState& exceptionState)
-{
- if (!isSVGDocument()) {
- exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, 0));
- return nullptr;
- }
-
- UseCounter::count(this, UseCounter::DocumentCreateEventOptionalArgument);
- // Legacy SVGDocument behavior.
- return createEvent("undefined", exceptionState);
-}
-
void Document::addMutationEventListenerTypeIfEnabled(ListenerType listenerType)
{
if (ContextFeatures::mutationEventsEnabled(this))
« no previous file with comments | « Source/core/dom/Document.h ('k') | Source/core/dom/Document.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698