Index: third_party/WebKit/Source/core/events/EventTarget.idl |
diff --git a/third_party/WebKit/Source/core/events/EventTarget.idl b/third_party/WebKit/Source/core/events/EventTarget.idl |
index 9798b1282d34ee1f45f43ba4fd87bc3fd5797f87..602c41ad27100d2447268641f262ceb0ee91a14d 100644 |
--- a/third_party/WebKit/Source/core/events/EventTarget.idl |
+++ b/third_party/WebKit/Source/core/events/EventTarget.idl |
@@ -25,10 +25,7 @@ |
WillBeGarbageCollected, |
Exposed=(Window,Worker) |
] interface EventTarget { |
- // FIXME: first 2 args should be required, but throwing TypeError breaks |
- // legacy content. http://crbug.com/353484 |
- // FIXME: type should not be nullable. |
- [Custom] void addEventListener(optional DOMString? type = null, optional EventListener? listener = null, optional (EventListenerOptions or boolean) options); |
- [Custom] void removeEventListener(optional DOMString? type = null, optional EventListener? listener = null, optional (EventListenerOptions or boolean) options); |
+ [Custom] void addEventListener(DOMString type, EventListener? listener, optional (EventListenerOptions or boolean) options); |
+ [Custom] void removeEventListener(DOMString type, EventListener? listener, optional (EventListenerOptions or boolean) options); |
[ImplementedAs=dispatchEventForBindings, RaisesException] boolean dispatchEvent(Event event); |
}; |