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

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

Issue 146193003: Remove SVGDocument binding (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix getSVGDocument to return SVGDocument Created 6 years, 11 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
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))

Powered by Google App Engine
This is Rietveld 408576698