| Index: Source/core/events/EventTarget.h
|
| diff --git a/Source/core/events/EventTarget.h b/Source/core/events/EventTarget.h
|
| index 2e86b3c77db0cb44c1142814ad9ff84bbdf0ef81..4c3f392627060454c26c8d8c040aaa60afacad65 100644
|
| --- a/Source/core/events/EventTarget.h
|
| +++ b/Source/core/events/EventTarget.h
|
| @@ -86,14 +86,9 @@ 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() { return false; }
|
| - bool addEventListener(const AtomicString& eventType) { return false; }
|
| + // FIXME: default values should be specified in IDL, not C++
|
| + // http://crbug.com/258153
|
| virtual bool addEventListener(const AtomicString& eventType, PassRefPtr<EventListener>, bool useCapture = false);
|
| - bool removeEventListener() { return false; }
|
| - bool removeEventListener(const AtomicString& eventType) { return false; }
|
| virtual bool removeEventListener(const AtomicString& eventType, EventListener*, bool useCapture = false);
|
| virtual void removeAllEventListeners();
|
| virtual bool dispatchEvent(PassRefPtrWillBeRawPtr<Event>);
|
|
|