summaryrefslogtreecommitdiff
path: root/Source/WebCore/dom/OverflowEvent.idl
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/dom/OverflowEvent.idl')
-rw-r--r--Source/WebCore/dom/OverflowEvent.idl23
1 files changed, 11 insertions, 12 deletions
diff --git a/Source/WebCore/dom/OverflowEvent.idl b/Source/WebCore/dom/OverflowEvent.idl
index 4b9ecd3a3..9fe025f54 100644
--- a/Source/WebCore/dom/OverflowEvent.idl
+++ b/Source/WebCore/dom/OverflowEvent.idl
@@ -10,10 +10,10 @@
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
- * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
@@ -24,20 +24,19 @@
*/
[
- ConstructorTemplate=Event
+ Constructor(DOMString type, optional OverflowEventInit eventInitDict),
] interface OverflowEvent : Event {
const unsigned short HORIZONTAL = 0;
const unsigned short VERTICAL = 1;
const unsigned short BOTH = 2;
- [InitializedByEventConstructor] readonly attribute unsigned short orient;
- [InitializedByEventConstructor] readonly attribute boolean horizontalOverflow;
- [InitializedByEventConstructor] readonly attribute boolean verticalOverflow;
-
-#if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C
- void initOverflowEvent([Default=Undefined] optional unsigned short orient,
- [Default=Undefined] optional boolean horizontalOverflow,
- [Default=Undefined] optional boolean verticalOverflow);
-#endif
+ readonly attribute unsigned short orient;
+ readonly attribute boolean horizontalOverflow;
+ readonly attribute boolean verticalOverflow;
};
+dictionary OverflowEventInit : EventInit {
+ unsigned short orient = 0;
+ boolean horizontalOverflow = false;
+ boolean verticalOverflow = false;
+};