Skip to content

Commit 2c8bbda

Browse files
committed
Merge branch 'master' into comment-patch
2 parents 14ee155 + 8abf04f commit 2c8bbda

21 files changed

+1028
-202
lines changed

baselines/dom.generated.d.ts

Lines changed: 201 additions & 94 deletions
Large diffs are not rendered by default.

baselines/dom.iterable.generated.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,10 @@ interface SVGNumberList {
166166
[Symbol.iterator](): IterableIterator<SVGNumber>;
167167
}
168168

169+
interface SVGPointList {
170+
[Symbol.iterator](): IterableIterator<DOMPoint>;
171+
}
172+
169173
interface SVGStringList {
170174
[Symbol.iterator](): IterableIterator<string>;
171175
}

baselines/webworker.generated.d.ts

Lines changed: 184 additions & 10 deletions
Large diffs are not rendered by default.

inputfiles/addedTypes.json

Lines changed: 117 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@
7474
"GlobalEventHandlers": {
7575
"events": {
7676
"event": [
77+
{
78+
"name": "auxclick",
79+
"type": "MouseEvent"
80+
},
7781
{
7882
"name": "cancel",
7983
"type": "Event"
@@ -221,6 +225,19 @@
221225
},
222226
"interfaces": {
223227
"interface": {
228+
"SVGSVGElement": {
229+
"name": "SVGSVGElement",
230+
"methods": {
231+
"method": {
232+
"animationsPaused": {
233+
"name": "animationsPaused",
234+
"override-signatures": [
235+
"animationsPaused(): boolean"
236+
]
237+
}
238+
}
239+
}
240+
},
224241
"SVGFEDropShadowElement": {
225242
"name": "SVGFEDropShadowElement",
226243
"exposed": "Window",
@@ -314,6 +331,12 @@
314331
]
315332
}
316333
},
334+
"DeviceMotionEventAcceleration": {
335+
"no-interface-object": 1
336+
},
337+
"DeviceMotionEventRotationRate": {
338+
"no-interface-object": 1
339+
},
317340
"RTCError": {
318341
"specs": "webrtc",
319342
"constructor": {
@@ -535,7 +558,15 @@
535558
],
536559
"override-index-signatures": [
537560
"[index: number]: Window"
538-
]
561+
],
562+
"events": {
563+
"event": [
564+
{
565+
"name": "deviceorientationabsolute",
566+
"type": "DeviceOrientationEvent"
567+
}
568+
]
569+
}
539570
},
540571
"URLSearchParams": {
541572
"name": "URLSearchParams",
@@ -1848,6 +1879,91 @@
18481879
"name": "SVGAnimateMotionElement",
18491880
"extends": "SVGAnimationElement",
18501881
"exposed": "Window"
1882+
},
1883+
"SVGRectElement": {
1884+
"element": [
1885+
{
1886+
"namespace": "SVG",
1887+
"name": "rect"
1888+
}
1889+
]
1890+
},
1891+
"SVGCircleElement": {
1892+
"element": [
1893+
{
1894+
"namespace": "SVG",
1895+
"name": "circle"
1896+
}
1897+
]
1898+
},
1899+
"SVGEllipseElement": {
1900+
"element": [
1901+
{
1902+
"namespace": "SVG",
1903+
"name": "ellipse"
1904+
}
1905+
]
1906+
},
1907+
"SVGLineElement": {
1908+
"element": [
1909+
{
1910+
"namespace": "SVG",
1911+
"name": "line"
1912+
}
1913+
]
1914+
},
1915+
"SVGPolygonElement": {
1916+
"element": [
1917+
{
1918+
"namespace": "SVG",
1919+
"name": "polygon"
1920+
}
1921+
]
1922+
},
1923+
"SVGPolylineElement": {
1924+
"element": [
1925+
{
1926+
"namespace": "SVG",
1927+
"name": "polyline"
1928+
}
1929+
]
1930+
},
1931+
"MediaStream": {
1932+
"events": {
1933+
"event": [
1934+
{
1935+
"name": "addtrack",
1936+
"type": "MediaStreamTrackEvent"
1937+
},
1938+
{
1939+
"name": "removetrack",
1940+
"type": "MediaStreamTrackEvent"
1941+
}
1942+
]
1943+
}
1944+
},
1945+
"MediaStreamTrack": {
1946+
"events": {
1947+
"event": [
1948+
{
1949+
"name": "overconstrained",
1950+
"type": "MediaStreamErrorEvent"
1951+
}
1952+
]
1953+
}
1954+
},
1955+
"OverconstrainedError": {
1956+
"name": "OverconstrainedError",
1957+
"extends": "Error",
1958+
"exposed": "Window",
1959+
"properties": {
1960+
"property": {
1961+
"constraint": {
1962+
"name": "constraint",
1963+
"type": "DOMString"
1964+
}
1965+
}
1966+
}
18511967
}
18521968
}
18531969
},
@@ -1942,22 +2058,6 @@
19422058
"new-type": "MutationRecordType",
19432059
"override-type": "\"attributes\" | \"characterData\" | \"childList\""
19442060
},
1945-
{
1946-
"new-type": "ConstrainBoolean",
1947-
"override-type": "boolean | ConstrainBooleanParameters"
1948-
},
1949-
{
1950-
"new-type": "ConstrainDOMString",
1951-
"override-type": "string | string[] | ConstrainDOMStringParameters"
1952-
},
1953-
{
1954-
"new-type": "ConstrainDouble",
1955-
"override-type": "number | ConstrainDoubleRange"
1956-
},
1957-
{
1958-
"new-type": "ConstrainLong",
1959-
"override-type": "number | ConstrainLongRange"
1960-
},
19612061
{
19622062
"new-type": "IDBKeyPath",
19632063
"override-type": "string"
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
partial interface Window {
2+
[SecureContext] attribute EventHandler ondeviceorientation;
3+
};
4+
5+
[Constructor(DOMString type, optional DeviceOrientationEventInit eventInitDict), Exposed=Window, SecureContext]
6+
interface DeviceOrientationEvent : Event {
7+
readonly attribute double? alpha;
8+
readonly attribute double? beta;
9+
readonly attribute double? gamma;
10+
readonly attribute boolean absolute;
11+
12+
static Promise<PermissionState> requestPermission();
13+
};
14+
15+
dictionary DeviceOrientationEventInit : EventInit {
16+
double? alpha = null;
17+
double? beta = null;
18+
double? gamma = null;
19+
boolean absolute = false;
20+
};
21+
22+
enum PermissionState {
23+
"granted",
24+
"denied",
25+
};
26+
27+
partial interface Window {
28+
[SecureContext] attribute EventHandler ondeviceorientationabsolute;
29+
};
30+
31+
partial interface Window {
32+
attribute EventHandler oncompassneedscalibration;
33+
};
34+
35+
partial interface Window {
36+
[SecureContext] attribute EventHandler ondevicemotion;
37+
};
38+
39+
[SecureContext]
40+
interface DeviceMotionEventAcceleration {
41+
readonly attribute double? x;
42+
readonly attribute double? y;
43+
readonly attribute double? z;
44+
};
45+
46+
[SecureContext]
47+
interface DeviceMotionEventRotationRate {
48+
readonly attribute double? alpha;
49+
readonly attribute double? beta;
50+
readonly attribute double? gamma;
51+
};
52+
53+
[Constructor(DOMString type, optional DeviceMotionEventInit eventInitDict), Exposed=Window, SecureContext]
54+
interface DeviceMotionEvent : Event {
55+
readonly attribute DeviceMotionEventAcceleration? acceleration;
56+
readonly attribute DeviceMotionEventAcceleration? accelerationIncludingGravity;
57+
readonly attribute DeviceMotionEventRotationRate? rotationRate;
58+
readonly attribute double interval;
59+
60+
static Promise<PermissionState> requestPermission();
61+
};
62+
63+
dictionary DeviceMotionEventAccelerationInit {
64+
double? x = null;
65+
double? y = null;
66+
double? z = null;
67+
};
68+
69+
dictionary DeviceMotionEventRotationRateInit {
70+
double? alpha = null;
71+
double? beta = null;
72+
double? gamma = null;
73+
};
74+
75+
dictionary DeviceMotionEventInit : EventInit {
76+
DeviceMotionEventAccelerationInit acceleration;
77+
DeviceMotionEventAccelerationInit accelerationIncludingGravity;
78+
DeviceMotionEventRotationRateInit rotationRate;
79+
double interval = 0;
80+
};

inputfiles/idl/Gamepad Extensions.widl

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@ enum GamepadHapticActuatorType {
1414
};
1515

1616
interface GamepadPose {
17-
readonly attribute boolean hasOrientation;
18-
readonly attribute boolean hasPosition;
17+
readonly attribute boolean hasOrientation;
18+
readonly attribute boolean hasPosition;
1919

20-
readonly attribute Float32Array? position;
21-
readonly attribute Float32Array? linearVelocity;
22-
readonly attribute Float32Array? linearAcceleration;
23-
readonly attribute Float32Array? orientation;
24-
readonly attribute Float32Array? angularVelocity;
25-
readonly attribute Float32Array? angularAcceleration;
26-
};
20+
readonly attribute Float32Array? position;
21+
readonly attribute Float32Array? linearVelocity;
22+
readonly attribute Float32Array? linearAcceleration;
23+
readonly attribute Float32Array? orientation;
24+
readonly attribute Float32Array? angularVelocity;
25+
readonly attribute Float32Array? angularAcceleration;
26+
};
2727

2828
partial interface Gamepad {
2929
readonly attribute GamepadHand hand;

inputfiles/idl/Geolocation.widl

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
11
partial interface Navigator {
2-
readonly attribute Geolocation geolocation;
3-
};
2+
readonly attribute Geolocation geolocation;
3+
};
44

55
[NoInterfaceObject]
6-
interface Geolocation {
7-
void getCurrentPosition(PositionCallback successCallback,
8-
optional PositionErrorCallback errorCallback,
9-
optional PositionOptions options);
6+
interface Geolocation {
7+
void getCurrentPosition(PositionCallback successCallback,
8+
optional PositionErrorCallback errorCallback,
9+
optional PositionOptions options);
1010

11-
long watchPosition(PositionCallback successCallback,
12-
optional PositionErrorCallback errorCallback,
13-
optional PositionOptions options);
11+
long watchPosition(PositionCallback successCallback,
12+
optional PositionErrorCallback errorCallback,
13+
optional PositionOptions options);
1414

15-
void clearWatch(long watchId);
16-
};
15+
void clearWatch(long watchId);
16+
};
1717

18-
callback PositionCallback = void (Position position);
18+
callback PositionCallback = void (Position position);
1919

20-
callback PositionErrorCallback = void (PositionError positionError);
20+
callback PositionErrorCallback = void (PositionError positionError);
2121

2222
dictionary PositionOptions {
23-
boolean enableHighAccuracy = false;
24-
[Clamp] unsigned long timeout = 0xFFFFFFFF;
25-
[Clamp] unsigned long maximumAge = 0;
26-
};
23+
boolean enableHighAccuracy = false;
24+
[Clamp] unsigned long timeout = 0xFFFFFFFF;
25+
[Clamp] unsigned long maximumAge = 0;
26+
};
2727

2828
[NoInterfaceObject]
2929
interface Position {

inputfiles/idl/HTML - Semantics.widl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ interface HTMLLinkElement : HTMLElement {
3232
[CEReactions] attribute DOMString hreflang;
3333
[CEReactions] attribute DOMString type;
3434
[SameObject, PutForwards=value] readonly attribute DOMTokenList sizes;
35+
[CEReactions] attribute USVString imageSrcset;
36+
[CEReactions] attribute DOMString imageSizes;
3537
[CEReactions] attribute DOMString referrerPolicy;
3638
};
3739
HTMLLinkElement includes LinkStyle;

inputfiles/idl/HTML - Web storage.widl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ interface StorageEvent : Event {
2626
readonly attribute DOMString? newValue;
2727
readonly attribute USVString url;
2828
readonly attribute Storage? storageArea;
29+
30+
void initStorageEvent(DOMString type, optional boolean bubbles = false, optional boolean cancelable = false, optional DOMString? key = null, optional DOMString? oldValue = null, optional DOMString? newValue = null, optional USVString url = "", optional Storage? storageArea = null);
2931
};
3032

3133
dictionary StorageEventInit : EventInit {

0 commit comments

Comments
 (0)