| Index: Source/core/events/EventTarget.h
|
| diff --git a/Source/core/events/EventTarget.h b/Source/core/events/EventTarget.h
|
| index 04c803c4ce1befd0c23ad5ea2979d330905290ef..f1f63ad90610f943bf97ca9e5c9e5a91341b8ce1 100644
|
| --- a/Source/core/events/EventTarget.h
|
| +++ b/Source/core/events/EventTarget.h
|
| @@ -122,13 +122,8 @@ public:
|
| virtual LocalDOMWindow* toDOMWindow();
|
| virtual MessagePort* toMessagePort();
|
|
|
| - // FIXME: first 2 args to addEventListener and removeEventListener should
|
| - // be required (per spec), but throwing TypeError breaks legacy content.
|
| - // http://crbug.com/353484
|
| - bool addEventListener();
|
| - virtual bool addEventListener(const AtomicString& eventType, PassRefPtr<EventListener>, bool useCapture = false);
|
| - bool removeEventListener();
|
| - virtual bool removeEventListener(const AtomicString& eventType, PassRefPtr<EventListener>, bool useCapture = false);
|
| + virtual bool addEventListener(const AtomicString& eventType, PassRefPtr<EventListener>, bool useCapture);
|
| + virtual bool removeEventListener(const AtomicString& eventType, PassRefPtr<EventListener>, bool useCapture);
|
| virtual void removeAllEventListeners();
|
| virtual bool dispatchEvent(PassRefPtrWillBeRawPtr<Event>);
|
| bool dispatchEvent(PassRefPtrWillBeRawPtr<Event>, ExceptionState&); // DOM API
|
|
|