Skip to content

Commit 88de2cf

Browse files
authored
Rebase the uievents.idl patch (parts of it applied) (#148)
w3c/uievents#297 should fix what remains by fixing the spec build/deploy.
1 parent 15249f0 commit 88de2cf

File tree

1 file changed

+6
-75
lines changed

1 file changed

+6
-75
lines changed

ed/idlpatches/uievents.idl.patch

Lines changed: 6 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
1-
From a7226b687cb8f5b654392aa191aace5bce1d4912 Mon Sep 17 00:00:00 2001
1+
From 2e9493bbe60c0558d5d9a5d91a17992a889c6906 Mon Sep 17 00:00:00 2001
22
From: Kagami Sascha Rosylight <saschanaz@outlook.com>
33
Date: Fri, 19 Mar 2021 03:20:54 +0100
44
Subject: [PATCH] Fix uievents.idl
55

6-
https://github.com/w3c/uievents/pull/287
7-
https://github.com/w3c/uievents/pull/296
6+
https://github.com/w3c/uievents/pull/297
87
---
9-
ed/idl/uievents.idl | 66 ++++++++++++++++++++++++++++++++++++++++-----
10-
1 file changed, 59 insertions(+), 7 deletions(-)
8+
ed/idl/uievents.idl | 14 +++++++-------
9+
1 file changed, 7 insertions(+), 7 deletions(-)
1110

1211
diff --git a/ed/idl/uievents.idl b/ed/idl/uievents.idl
13-
index d5506ef77..716998278 100644
12+
index 711b9620b..8eaab30ea 100644
1413
--- a/ed/idl/uievents.idl
1514
+++ b/ed/idl/uievents.idl
1615
@@ -5,7 +5,7 @@
@@ -76,74 +75,6 @@ index d5506ef77..716998278 100644
7675
readonly attribute DOMString data;
7776
};
7877

79-
@@ -152,11 +152,49 @@ dictionary CompositionEventInit : UIEventInit {
80-
DOMString data = "";
81-
};
82-
83-
+partial interface UIEvent {
84-
+ // Deprecated in this specification
85-
+ undefined initUIEvent();
86-
+};
87-
+
88-
+partial interface MouseEvent {
89-
+ // Deprecated in this specification
90-
+ undefined initMouseEvent();
91-
+};
92-
+
93-
+partial interface WheelEvent {
94-
+ // Originally introduced (and deprecated) in this specification
95-
+ undefined initWheelEvent();
96-
+};
97-
+
98-
+partial interface KeyboardEvent {
99-
+ // Originally introduced (and deprecated) in this specification
100-
+ undefined initKeyboardEvent(DOMString typeArg,
101-
+ optional boolean bubblesArg = false,
102-
+ optional boolean cancelableArg = false,
103-
+ optional Window? viewArg = null,
104-
+ optional DOMString keyArg = "",
105-
+ optional unsigned long locationArg = 0,
106-
+ optional boolean ctrlKey = false,
107-
+ optional boolean altKey = false,
108-
+ optional boolean shiftKey = false,
109-
+ optional boolean metaKey = false);
110-
+};
111-
+
112-
+partial interface CompositionEvent {
113-
+ // Originally introduced (and deprecated) in this specification
114-
+ undefined initCompositionEvent();
115-
+};
116-
+
117-
partial interface UIEvent {
118-
// The following support legacy user agents
119-
readonly attribute unsigned long which;
120-
};
121-
122-
+partial dictionary UIEventInit {
123-
+ unsigned long which = 0;
124-
+};
125-
+
126-
partial interface KeyboardEvent {
127-
// The following support legacy user agents
128-
readonly attribute unsigned long charCode;
129-
@@ -168,3 +206,17 @@ partial dictionary KeyboardEventInit {
130-
unsigned long charCode = 0;
131-
unsigned long keyCode = 0;
132-
};
133-
+
134-
+interface MutationEvent : Event {
135-
+ // attrChangeType
136-
+ const unsigned short MODIFICATION = 1;
137-
+ const unsigned short ADDITION = 2;
138-
+ const unsigned short REMOVAL = 3;
139-
+ readonly attribute Node? relatedNode;
140-
+ readonly attribute DOMString prevValue;
141-
+ readonly attribute DOMString newValue;
142-
+ readonly attribute DOMString attrName;
143-
+ readonly attribute unsigned short attrChange;
144-
+
145-
+ undefined initMutationEvent();
146-
+};
14778
--
148-
2.30.2.windows.1
79+
2.31.0.rc2.261.g7f71774620-goog
14980

0 commit comments

Comments
 (0)