Build cleanly with GCC 9
[WebKit-https.git] / Source / WebCore / dom / CompositionEvent.idl
index 5c6a197..20aac7e 100644 (file)
  */
 
 [
-    ConstructorConditional=DOM4_EVENTS_CONSTRUCTOR,
-    ConstructorTemplate=Event,
+    Constructor(DOMString type, optional CompositionEventInit eventInitDict),
 ] interface CompositionEvent : UIEvent {
 
-    [InitializedByEventConstructor] readonly attribute DOMString data;
+    readonly attribute DOMString data;
 
-    void initCompositionEvent([Default=Undefined] optional DOMString typeArg, 
-                              [Default=Undefined] optional boolean canBubbleArg, 
-                              [Default=Undefined] optional boolean cancelableArg, 
-                              [Default=Undefined] optional DOMWindow viewArg, 
-                              [Default=Undefined] optional DOMString dataArg);
+    // FIXME: Using "undefined" as default parameter value is wrong.
+    void initCompositionEvent(optional DOMString typeArg = "undefined",
+                              optional boolean canBubbleArg = false,
+                              optional boolean cancelableArg = false,
+                              optional WindowProxy? viewArg = null,
+                              optional DOMString dataArg = "undefined");
 
 };
 
+dictionary CompositionEventInit : UIEventInit {
+    DOMString data = "";
+};