| Index: core/events/CustomEvent.idl
|
| diff --git a/core/events/CustomEvent.idl b/core/events/CustomEvent.idl
|
| index 4d4cb085c639989686d3f31d2cb996645c8f84df..ca1e27ff5cce78b37620ea5b58bf3d6db94cb977 100644
|
| --- a/core/events/CustomEvent.idl
|
| +++ b/core/events/CustomEvent.idl
|
| @@ -26,14 +26,12 @@
|
| // https://dom.spec.whatwg.org/#interface-customevent
|
|
|
| [
|
| - Constructor(DOMString type, optional CustomEventInit eventInitDict),
|
| + // TODO(bashi): Don't use CustomConstructor. Constructor should be:
|
| + // Constructor(DOMString type, optional CustomEventInit eventInitDict),
|
| + CustomConstructor,
|
| Exposed=(Window,Worker),
|
| ] interface CustomEvent : Event {
|
| [Custom=Getter] readonly attribute any detail;
|
|
|
| - // FIXME: initCustomEvent()'s arguments should not be optional.
|
| - [Custom, Measure] void initCustomEvent([Default=Undefined] optional DOMString type,
|
| - [Default=Undefined] optional boolean bubbles,
|
| - [Default=Undefined] optional boolean cancelable,
|
| - [Default=Undefined] optional any detail);
|
| + [Measure,Custom=(CallEpilogue)] void initCustomEvent(DOMString type, boolean bubbles, boolean cancelable, any detail);
|
| };
|
|
|