Title: [266801] trunk
Revision
266801
Author
[email protected]
Date
2020-09-09 15:13:54 -0700 (Wed, 09 Sep 2020)

Log Message

[WebIDL] Split GlobalEventHandlers partial interface mixins out of base mixin
https://bugs.webkit.org/show_bug.cgi?id=216316

Reviewed by Darin Adler.

Source/WebCore:

Split GlobalEventHandlersCSSAnimations.idl, GlobalEventHandlersCSSTransitions.idl and
GlobalEventHandlersPointerEvents.idl out of GlobalEventHandlers.idl to match how they
are specified more closely.

* CMakeLists.txt:
* DerivedSources-input.xcfilelist:
* DerivedSources-output.xcfilelist:
* DerivedSources.make:
* Sources.txt:
* WebCore.xcodeproj/project.pbxproj:
* animation/GlobalEventHandlersCSSAnimations.idl: Added.
* animation/GlobalEventHandlersCSSTransitions.idl: Added.
* dom/GlobalEventHandlers.idl:
* dom/GlobalEventHandlersPointerEvents.idl: Added.

LayoutTests:

* js/dom/dom-static-property-for-in-iteration-expected.txt:
* platform/gtk/js/dom/dom-static-property-for-in-iteration-expected.txt:
* platform/ios-wk2/js/dom/dom-static-property-for-in-iteration-expected.txt:
* platform/mac-wk2/js/dom/dom-static-property-for-in-iteration-expected.txt:
* platform/wpe/js/dom/dom-static-property-for-in-iteration-expected.txt:
Update for slight enumeration ordering change.

Modified Paths

Added Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (266800 => 266801)


--- trunk/LayoutTests/ChangeLog	2020-09-09 22:11:30 UTC (rev 266800)
+++ trunk/LayoutTests/ChangeLog	2020-09-09 22:13:54 UTC (rev 266801)
@@ -1,3 +1,17 @@
+2020-09-09  Sam Weinig  <[email protected]>
+
+        [WebIDL] Split GlobalEventHandlers partial interface mixins out of base mixin
+        https://bugs.webkit.org/show_bug.cgi?id=216316
+
+        Reviewed by Darin Adler.
+
+        * js/dom/dom-static-property-for-in-iteration-expected.txt:
+        * platform/gtk/js/dom/dom-static-property-for-in-iteration-expected.txt:
+        * platform/ios-wk2/js/dom/dom-static-property-for-in-iteration-expected.txt:
+        * platform/mac-wk2/js/dom/dom-static-property-for-in-iteration-expected.txt:
+        * platform/wpe/js/dom/dom-static-property-for-in-iteration-expected.txt:
+        Update for slight enumeration ordering change.
+
 2020-09-09  Antoine Quint  <[email protected]>
 
         REGRESSION (r264856): updating easing on accelerated animation results in incorrect playback

Modified: trunk/LayoutTests/js/dom/dom-static-property-for-in-iteration-expected.txt (266800 => 266801)


--- trunk/LayoutTests/js/dom/dom-static-property-for-in-iteration-expected.txt	2020-09-09 22:11:30 UTC (rev 266800)
+++ trunk/LayoutTests/js/dom/dom-static-property-for-in-iteration-expected.txt	2020-09-09 22:13:54 UTC (rev 266801)
@@ -112,14 +112,14 @@
 PASS a["onunhandledrejection"] is null
 PASS a["onvolumechange"] is null
 PASS a["onwaiting"] is null
-PASS a["ontransitionend"] is null
+PASS a["onanimationstart"] is null
+PASS a["onanimationiteration"] is null
+PASS a["onanimationend"] is null
+PASS a["onanimationcancel"] is null
 PASS a["ontransitionrun"] is null
 PASS a["ontransitionstart"] is null
+PASS a["ontransitionend"] is null
 PASS a["ontransitioncancel"] is null
-PASS a["onanimationend"] is null
-PASS a["onanimationiteration"] is null
-PASS a["onanimationstart"] is null
-PASS a["onanimationcancel"] is null
 PASS a["ongotpointercapture"] is null
 PASS a["onlostpointercapture"] is null
 PASS a["onpointerdown"] is null

Modified: trunk/LayoutTests/platform/gtk/js/dom/dom-static-property-for-in-iteration-expected.txt (266800 => 266801)


--- trunk/LayoutTests/platform/gtk/js/dom/dom-static-property-for-in-iteration-expected.txt	2020-09-09 22:11:30 UTC (rev 266800)
+++ trunk/LayoutTests/platform/gtk/js/dom/dom-static-property-for-in-iteration-expected.txt	2020-09-09 22:13:54 UTC (rev 266801)
@@ -115,14 +115,14 @@
 PASS a["onunhandledrejection"] is null
 PASS a["onvolumechange"] is null
 PASS a["onwaiting"] is null
-PASS a["ontransitionend"] is null
+PASS a["onanimationstart"] is null
+PASS a["onanimationiteration"] is null
+PASS a["onanimationend"] is null
+PASS a["onanimationcancel"] is null
 PASS a["ontransitionrun"] is null
 PASS a["ontransitionstart"] is null
+PASS a["ontransitionend"] is null
 PASS a["ontransitioncancel"] is null
-PASS a["onanimationend"] is null
-PASS a["onanimationiteration"] is null
-PASS a["onanimationstart"] is null
-PASS a["onanimationcancel"] is null
 PASS a["ongotpointercapture"] is null
 PASS a["onlostpointercapture"] is null
 PASS a["onpointerdown"] is null

Modified: trunk/LayoutTests/platform/ios-wk2/js/dom/dom-static-property-for-in-iteration-expected.txt (266800 => 266801)


--- trunk/LayoutTests/platform/ios-wk2/js/dom/dom-static-property-for-in-iteration-expected.txt	2020-09-09 22:11:30 UTC (rev 266800)
+++ trunk/LayoutTests/platform/ios-wk2/js/dom/dom-static-property-for-in-iteration-expected.txt	2020-09-09 22:13:54 UTC (rev 266801)
@@ -115,14 +115,14 @@
 PASS a["onunhandledrejection"] is null
 PASS a["onvolumechange"] is null
 PASS a["onwaiting"] is null
-PASS a["ontransitionend"] is null
+PASS a["onanimationstart"] is null
+PASS a["onanimationiteration"] is null
+PASS a["onanimationend"] is null
+PASS a["onanimationcancel"] is null
 PASS a["ontransitionrun"] is null
 PASS a["ontransitionstart"] is null
+PASS a["ontransitionend"] is null
 PASS a["ontransitioncancel"] is null
-PASS a["onanimationend"] is null
-PASS a["onanimationiteration"] is null
-PASS a["onanimationstart"] is null
-PASS a["onanimationcancel"] is null
 PASS a["namespaceURI"] is http://www.w3.org/1999/xhtml
 PASS a["prefix"] is null
 PASS a["localName"] is a

Modified: trunk/LayoutTests/platform/mac-wk2/js/dom/dom-static-property-for-in-iteration-expected.txt (266800 => 266801)


--- trunk/LayoutTests/platform/mac-wk2/js/dom/dom-static-property-for-in-iteration-expected.txt	2020-09-09 22:11:30 UTC (rev 266800)
+++ trunk/LayoutTests/platform/mac-wk2/js/dom/dom-static-property-for-in-iteration-expected.txt	2020-09-09 22:13:54 UTC (rev 266801)
@@ -116,14 +116,14 @@
 PASS a["onunhandledrejection"] is null
 PASS a["onvolumechange"] is null
 PASS a["onwaiting"] is null
-PASS a["ontransitionend"] is null
+PASS a["onanimationstart"] is null
+PASS a["onanimationiteration"] is null
+PASS a["onanimationend"] is null
+PASS a["onanimationcancel"] is null
 PASS a["ontransitionrun"] is null
 PASS a["ontransitionstart"] is null
+PASS a["ontransitionend"] is null
 PASS a["ontransitioncancel"] is null
-PASS a["onanimationend"] is null
-PASS a["onanimationiteration"] is null
-PASS a["onanimationstart"] is null
-PASS a["onanimationcancel"] is null
 PASS a["ongotpointercapture"] is null
 PASS a["onlostpointercapture"] is null
 PASS a["onpointerdown"] is null

Modified: trunk/LayoutTests/platform/wpe/js/dom/dom-static-property-for-in-iteration-expected.txt (266800 => 266801)


--- trunk/LayoutTests/platform/wpe/js/dom/dom-static-property-for-in-iteration-expected.txt	2020-09-09 22:11:30 UTC (rev 266800)
+++ trunk/LayoutTests/platform/wpe/js/dom/dom-static-property-for-in-iteration-expected.txt	2020-09-09 22:13:54 UTC (rev 266801)
@@ -114,14 +114,14 @@
 PASS a["onunhandledrejection"] is null
 PASS a["onvolumechange"] is null
 PASS a["onwaiting"] is null
-PASS a["ontransitionend"] is null
+PASS a["onanimationstart"] is null
+PASS a["onanimationiteration"] is null
+PASS a["onanimationend"] is null
+PASS a["onanimationcancel"] is null
 PASS a["ontransitionrun"] is null
 PASS a["ontransitionstart"] is null
+PASS a["ontransitionend"] is null
 PASS a["ontransitioncancel"] is null
-PASS a["onanimationend"] is null
-PASS a["onanimationiteration"] is null
-PASS a["onanimationstart"] is null
-PASS a["onanimationcancel"] is null
 PASS a["ongotpointercapture"] is null
 PASS a["onlostpointercapture"] is null
 PASS a["onpointerdown"] is null

Modified: trunk/Source/WebCore/CMakeLists.txt (266800 => 266801)


--- trunk/Source/WebCore/CMakeLists.txt	2020-09-09 22:11:30 UTC (rev 266800)
+++ trunk/Source/WebCore/CMakeLists.txt	2020-09-09 22:13:54 UTC (rev 266801)
@@ -647,6 +647,8 @@
     animation/DocumentTimelineOptions.idl
     animation/FillMode.idl
     animation/GetAnimationsOptions.idl
+    animation/GlobalEventHandlersCSSAnimations.idl
+    animation/GlobalEventHandlersCSSTransitions.idl
     animation/IterationCompositeOperation.idl
     animation/KeyframeAnimationOptions.idl
     animation/KeyframeEffect.idl
@@ -789,6 +791,7 @@
     dom/EventTarget.idl
     dom/FocusEvent.idl
     dom/GlobalEventHandlers.idl
+    dom/GlobalEventHandlersPointerEvents.idl
     dom/HashChangeEvent.idl
     dom/IdleDeadline.idl
     dom/IdleRequestCallback.idl

Modified: trunk/Source/WebCore/ChangeLog (266800 => 266801)


--- trunk/Source/WebCore/ChangeLog	2020-09-09 22:11:30 UTC (rev 266800)
+++ trunk/Source/WebCore/ChangeLog	2020-09-09 22:13:54 UTC (rev 266801)
@@ -1,5 +1,27 @@
 2020-09-09  Sam Weinig  <[email protected]>
 
+        [WebIDL] Split GlobalEventHandlers partial interface mixins out of base mixin
+        https://bugs.webkit.org/show_bug.cgi?id=216316
+
+        Reviewed by Darin Adler.
+
+        Split GlobalEventHandlersCSSAnimations.idl, GlobalEventHandlersCSSTransitions.idl and
+        GlobalEventHandlersPointerEvents.idl out of GlobalEventHandlers.idl to match how they
+        are specified more closely.
+
+        * CMakeLists.txt:
+        * DerivedSources-input.xcfilelist:
+        * DerivedSources-output.xcfilelist:
+        * DerivedSources.make:
+        * Sources.txt:
+        * WebCore.xcodeproj/project.pbxproj:
+        * animation/GlobalEventHandlersCSSAnimations.idl: Added.
+        * animation/GlobalEventHandlersCSSTransitions.idl: Added.
+        * dom/GlobalEventHandlers.idl:
+        * dom/GlobalEventHandlersPointerEvents.idl: Added.
+
+2020-09-09  Sam Weinig  <[email protected]>
+
         [WebIDL] Stop automatically applying the ImplementedBy extended attribute to all partial interfaces/dictionaries
         https://bugs.webkit.org/show_bug.cgi?id=216322
 

Modified: trunk/Source/WebCore/DerivedSources-input.xcfilelist (266800 => 266801)


--- trunk/Source/WebCore/DerivedSources-input.xcfilelist	2020-09-09 22:11:30 UTC (rev 266800)
+++ trunk/Source/WebCore/DerivedSources-input.xcfilelist	2020-09-09 22:13:54 UTC (rev 266801)
@@ -541,6 +541,8 @@
 $(PROJECT_DIR)/animation/EffectTiming.idl
 $(PROJECT_DIR)/animation/FillMode.idl
 $(PROJECT_DIR)/animation/GetAnimationsOptions.idl
+$(PROJECT_DIR)/animation/GlobalEventHandlersCSSAnimations.idl
+$(PROJECT_DIR)/animation/GlobalEventHandlersCSSTransitions.idl
 $(PROJECT_DIR)/animation/IterationCompositeOperation.idl
 $(PROJECT_DIR)/animation/KeyframeAnimationOptions.idl
 $(PROJECT_DIR)/animation/KeyframeEffect.idl
@@ -710,6 +712,7 @@
 $(PROJECT_DIR)/dom/EventTargetFactory.in
 $(PROJECT_DIR)/dom/FocusEvent.idl
 $(PROJECT_DIR)/dom/GlobalEventHandlers.idl
+$(PROJECT_DIR)/dom/GlobalEventHandlersPointerEvents.idl
 $(PROJECT_DIR)/dom/HashChangeEvent.idl
 $(PROJECT_DIR)/dom/IdleDeadline.idl
 $(PROJECT_DIR)/dom/IdleRequestCallback.idl

Modified: trunk/Source/WebCore/DerivedSources-output.xcfilelist (266800 => 266801)


--- trunk/Source/WebCore/DerivedSources-output.xcfilelist	2020-09-09 22:11:30 UTC (rev 266800)
+++ trunk/Source/WebCore/DerivedSources-output.xcfilelist	2020-09-09 22:13:54 UTC (rev 266801)
@@ -776,6 +776,12 @@
 $(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSGlobalCrypto.h
 $(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSGlobalEventHandlers.cpp
 $(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSGlobalEventHandlers.h
+$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/GlobalEventHandlersCSSAnimations.cpp
+$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/GlobalEventHandlersCSSAnimations.h
+$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/GlobalEventHandlersCSSTransitions.cpp
+$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/GlobalEventHandlersCSSTransitions.h
+$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/GlobalEventHandlersPointerEvents.cpp
+$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/GlobalEventHandlersPointerEvents.h
 $(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSGlobalPerformance.cpp
 $(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSGlobalPerformance.h
 $(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSHTMLAllCollection.cpp

Modified: trunk/Source/WebCore/DerivedSources.make (266800 => 266801)


--- trunk/Source/WebCore/DerivedSources.make	2020-09-09 22:11:30 UTC (rev 266800)
+++ trunk/Source/WebCore/DerivedSources.make	2020-09-09 22:13:54 UTC (rev 266801)
@@ -605,6 +605,8 @@
     $(WebCore)/animation/EffectTiming.idl \
     $(WebCore)/animation/FillMode.idl \
     $(WebCore)/animation/GetAnimationsOptions.idl \
+    $(WebCore)/animation/GlobalEventHandlersCSSAnimations.idl \
+    $(WebCore)/animation/GlobalEventHandlersCSSTransitions.idl \
     $(WebCore)/animation/IterationCompositeOperation.idl \
     $(WebCore)/animation/KeyframeAnimationOptions.idl \
     $(WebCore)/animation/KeyframeEffect.idl \
@@ -740,6 +742,7 @@
     $(WebCore)/dom/EventTarget.idl \
     $(WebCore)/dom/FocusEvent.idl \
     $(WebCore)/dom/GlobalEventHandlers.idl \
+    $(WebCore)/dom/GlobalEventHandlersPointerEvents.idl \
     $(WebCore)/dom/HashChangeEvent.idl \
     $(WebCore)/dom/IdleDeadline.idl \
     $(WebCore)/dom/IdleRequestCallback.idl \

Modified: trunk/Source/WebCore/Sources.txt (266800 => 266801)


--- trunk/Source/WebCore/Sources.txt	2020-09-09 22:11:30 UTC (rev 266800)
+++ trunk/Source/WebCore/Sources.txt	2020-09-09 22:13:54 UTC (rev 266801)
@@ -2938,7 +2938,6 @@
 JSGeolocationPositionError.cpp
 JSGetAnimationsOptions.cpp
 JSGlobalCrypto.cpp
-JSGlobalEventHandlers.cpp
 JSGlobalPerformance.cpp
 JSHTMLAllCollection.cpp
 JSHTMLAnchorElement.cpp

Modified: trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj (266800 => 266801)


--- trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj	2020-09-09 22:11:30 UTC (rev 266800)
+++ trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj	2020-09-09 22:13:54 UTC (rev 266801)
@@ -10115,6 +10115,9 @@
 		7C1F5D581F22FF7300A8874F /* JSDOMConvertScheduledAction.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = JSDOMConvertScheduledAction.h; sourceTree = "<group>"; };
 		7C2BDD3B17C7F98B0038FF15 /* JSDOMGlobalObjectTask.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSDOMGlobalObjectTask.cpp; sourceTree = "<group>"; };
 		7C2BDD3C17C7F98B0038FF15 /* JSDOMGlobalObjectTask.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSDOMGlobalObjectTask.h; sourceTree = "<group>"; };
+		7C2D7229250838B000539662 /* GlobalEventHandlersCSSTransitions.idl */ = {isa = PBXFileReference; lastKnownFileType = text; path = GlobalEventHandlersCSSTransitions.idl; sourceTree = "<group>"; };
+		7C2D722C2508396300539662 /* GlobalEventHandlersCSSAnimations.idl */ = {isa = PBXFileReference; lastKnownFileType = text; path = GlobalEventHandlersCSSAnimations.idl; sourceTree = "<group>"; };
+		7C2D722E25083A3400539662 /* GlobalEventHandlersPointerEvents.idl */ = {isa = PBXFileReference; lastKnownFileType = text; path = GlobalEventHandlersPointerEvents.idl; sourceTree = "<group>"; };
 		7C2FA60F1EA95A3200A03108 /* ResourceCryptographicDigest.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ResourceCryptographicDigest.cpp; sourceTree = "<group>"; };
 		7C2FA6101EA95A3200A03108 /* ResourceCryptographicDigest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ResourceCryptographicDigest.h; sourceTree = "<group>"; };
 		7C30D97E1F815AC000268356 /* JSAbortController.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSAbortController.cpp; sourceTree = "<group>"; };
@@ -21830,6 +21833,8 @@
 				712BE4821FE865D5002031CC /* FillMode.idl */,
 				713F1D5923DF1D7D003F5EFA /* GetAnimationsOptions.h */,
 				713F1D5723DF1D7D003F5EFA /* GetAnimationsOptions.idl */,
+				7C2D722C2508396300539662 /* GlobalEventHandlersCSSAnimations.idl */,
+				7C2D7229250838B000539662 /* GlobalEventHandlersCSSTransitions.idl */,
 				71247E331FEA5F80008C08CE /* IterationCompositeOperation.h */,
 				71247E311FEA5F7E008C08CE /* IterationCompositeOperation.idl */,
 				71247E2F1FEA5F7D008C08CE /* KeyframeAnimationOptions.h */,
@@ -29315,6 +29320,7 @@
 				0720B09E14D3323500642955 /* GenericEventQueue.cpp */,
 				0720B09F14D3323500642955 /* GenericEventQueue.h */,
 				7C4189AB1B07C170000FA757 /* GlobalEventHandlers.idl */,
+				7C2D722E25083A3400539662 /* GlobalEventHandlersPointerEvents.idl */,
 				E3BF19E622AF302A009C9926 /* HashChangeEvent.cpp */,
 				2442BBF81194C9D300D49469 /* HashChangeEvent.h */,
 				8482B7441198C32E00BFB005 /* HashChangeEvent.idl */,

Added: trunk/Source/WebCore/animation/GlobalEventHandlersCSSAnimations.idl (0 => 266801)


--- trunk/Source/WebCore/animation/GlobalEventHandlersCSSAnimations.idl	                        (rev 0)
+++ trunk/Source/WebCore/animation/GlobalEventHandlersCSSAnimations.idl	2020-09-09 22:13:54 UTC (rev 266801)
@@ -0,0 +1,32 @@
+/*
+ * Copyright (C) 2020 Apple Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    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 INC. AND ITS CONTRIBUTORS ``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 INC. OR ITS 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 PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
+ * THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+// https://drafts.csswg.org/css-animations/#interface-globaleventhandlers-idl
+partial interface mixin GlobalEventHandlers {
+    attribute EventHandler onanimationstart;
+    attribute EventHandler onanimationiteration;
+    attribute EventHandler onanimationend;
+    attribute EventHandler onanimationcancel;
+};

Added: trunk/Source/WebCore/animation/GlobalEventHandlersCSSTransitions.idl (0 => 266801)


--- trunk/Source/WebCore/animation/GlobalEventHandlersCSSTransitions.idl	                        (rev 0)
+++ trunk/Source/WebCore/animation/GlobalEventHandlersCSSTransitions.idl	2020-09-09 22:13:54 UTC (rev 266801)
@@ -0,0 +1,32 @@
+/*
+ * Copyright (C) 2020 Apple Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    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 INC. AND ITS CONTRIBUTORS ``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 INC. OR ITS 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 PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
+ * THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+// https://drafts.csswg.org/css-transitions/#interface-globaleventhandlers-idl
+partial interface mixin GlobalEventHandlers {
+    attribute EventHandler ontransitionrun;
+    attribute EventHandler ontransitionstart;
+    attribute EventHandler ontransitionend;
+    attribute EventHandler ontransitioncancel;
+};

Modified: trunk/Source/WebCore/dom/GlobalEventHandlers.idl (266800 => 266801)


--- trunk/Source/WebCore/dom/GlobalEventHandlers.idl	2020-09-09 22:11:30 UTC (rev 266800)
+++ trunk/Source/WebCore/dom/GlobalEventHandlers.idl	2020-09-09 22:13:54 UTC (rev 266801)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2015 Apple Inc. All Rights Reserved.
+ * Copyright (C) 2015, 2020 Apple Inc. All Rights Reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
@@ -93,30 +93,6 @@
     attribute EventHandler onvolumechange;
     attribute EventHandler onwaiting;
 
-    // Extensions from CSS Transitions API (https://drafts.csswg.org/css-transitions/#interface-globaleventhandlers-idl).
-    attribute EventHandler ontransitionend;
-    attribute EventHandler ontransitionrun;
-    attribute EventHandler ontransitionstart;
-    attribute EventHandler ontransitioncancel;
-
-    // Event handlers from CSS Animations API (https://drafts.csswg.org/css-animations/#interface-globaleventhandlers-idl).
-    attribute EventHandler onanimationend;
-    attribute EventHandler onanimationiteration;
-    attribute EventHandler onanimationstart;
-    attribute EventHandler onanimationcancel;
-
-    // Event handlers from Pointer Events API (https://w3c.github.io/pointerevents/#extensions-to-the-globaleventhandlers-mixin)
-    attribute EventHandler ongotpointercapture;
-    attribute EventHandler onlostpointercapture;
-    attribute EventHandler onpointerdown;
-    attribute EventHandler onpointermove;
-    attribute EventHandler onpointerup;
-    attribute EventHandler onpointercancel;
-    attribute EventHandler onpointerover;
-    attribute EventHandler onpointerout;
-    attribute EventHandler onpointerenter;
-    attribute EventHandler onpointerleave;
-
     // Additions that are not yet part of the standard.
 
     [NotEnumerable] attribute EventHandler onsearch;

Added: trunk/Source/WebCore/dom/GlobalEventHandlersPointerEvents.idl (0 => 266801)


--- trunk/Source/WebCore/dom/GlobalEventHandlersPointerEvents.idl	                        (rev 0)
+++ trunk/Source/WebCore/dom/GlobalEventHandlersPointerEvents.idl	2020-09-09 22:13:54 UTC (rev 266801)
@@ -0,0 +1,40 @@
+/*
+ * Copyright (C) 2020 Apple Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    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 INC. AND ITS CONTRIBUTORS ``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 INC. OR ITS 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 PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
+ * THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+// https://w3c.github.io/pointerevents/#extensions-to-the-globaleventhandlers-mixin
+partial interface mixin GlobalEventHandlers {
+    attribute EventHandler ongotpointercapture;
+    attribute EventHandler onlostpointercapture;
+    attribute EventHandler onpointerdown;
+    attribute EventHandler onpointermove;
+    // FIXME: Implement this.
+    // [SecureContext] attribute EventHandler onpointerrawupdate;
+    attribute EventHandler onpointerup;
+    attribute EventHandler onpointercancel;
+    attribute EventHandler onpointerover;
+    attribute EventHandler onpointerout;
+    attribute EventHandler onpointerenter;
+    attribute EventHandler onpointerleave;
+};
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to