Skip to content

Commit c8667f7

Browse files
authored
Merge branch 'master' into webgl-update
2 parents 9050386 + 405ce2d commit c8667f7

26 files changed

+745
-249
lines changed

baselines/dom.generated.d.ts

Lines changed: 257 additions & 92 deletions
Large diffs are not rendered by default.

baselines/webworker.generated.d.ts

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ interface Algorithm {
3939
}
4040

4141
interface BlobPropertyBag {
42+
endings?: EndingType;
4243
type?: string;
4344
}
4445

@@ -1064,7 +1065,6 @@ interface Event {
10641065
*/
10651066
readonly isTrusted: boolean;
10661067
returnValue: boolean;
1067-
readonly srcElement: object | null;
10681068
/**
10691069
* Returns the object to which event is dispatched (its target).
10701070
*/
@@ -1242,7 +1242,7 @@ interface FileReader extends EventTarget {
12421242
readAsArrayBuffer(blob: Blob): void;
12431243
readAsBinaryString(blob: Blob): void;
12441244
readAsDataURL(blob: Blob): void;
1245-
readAsText(blob: Blob, label?: string): void;
1245+
readAsText(blob: Blob, encoding?: string): void;
12461246
readonly DONE: number;
12471247
readonly EMPTY: number;
12481248
readonly LOADING: number;
@@ -1264,7 +1264,7 @@ interface FileReaderSync {
12641264
readAsArrayBuffer(blob: Blob): ArrayBuffer;
12651265
readAsBinaryString(blob: Blob): string;
12661266
readAsDataURL(blob: Blob): string;
1267-
readAsText(blob: Blob, label?: string): string;
1267+
readAsText(blob: Blob, encoding?: string): string;
12681268
}
12691269

12701270
declare var FileReaderSync: {
@@ -2275,7 +2275,7 @@ declare var ReadableStreamReader: {
22752275
interface Request extends Body {
22762276
/**
22772277
* Returns the cache mode associated with request, which is a string indicating
2278-
* how the the request will interact with the browser's cache when fetching.
2278+
* how the request will interact with the browser's cache when fetching.
22792279
*/
22802280
readonly cache: RequestCache;
22812281
/**
@@ -2597,6 +2597,29 @@ declare var TextEncoder: {
25972597
new(): TextEncoder;
25982598
};
25992599

2600+
interface TextMetrics {
2601+
readonly actualBoundingBoxAscent: number;
2602+
readonly actualBoundingBoxDescent: number;
2603+
readonly actualBoundingBoxLeft: number;
2604+
readonly actualBoundingBoxRight: number;
2605+
readonly alphabeticBaseline: number;
2606+
readonly emHeightAscent: number;
2607+
readonly emHeightDescent: number;
2608+
readonly fontBoundingBoxAscent: number;
2609+
readonly fontBoundingBoxDescent: number;
2610+
readonly hangingBaseline: number;
2611+
/**
2612+
* Returns the measurement described below.
2613+
*/
2614+
readonly ideographicBaseline: number;
2615+
readonly width: number;
2616+
}
2617+
2618+
declare var TextMetrics: {
2619+
prototype: TextMetrics;
2620+
new(): TextMetrics;
2621+
};
2622+
26002623
interface URL {
26012624
hash: string;
26022625
host: string;
@@ -4025,6 +4048,7 @@ type IDBValidKey = number | string | Date | BufferSource | IDBArrayKey;
40254048
type Transferable = ArrayBuffer | MessagePort | ImageBitmap;
40264049
type BinaryType = "blob" | "arraybuffer";
40274050
type ClientTypes = "window" | "worker" | "sharedworker" | "all";
4051+
type EndingType = "transparent" | "native";
40284052
type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";
40294053
type IDBRequestReadyState = "pending" | "done";
40304054
type IDBTransactionMode = "readonly" | "readwrite" | "versionchange";

inputfiles/addedTypes.json

Lines changed: 95 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,9 @@
389389
"name": "resize",
390390
"override-type": "string | null"
391391
},
392+
"touchAction": {
393+
"deprecated": 0
394+
},
392395
"userSelect": {
393396
"name": "userSelect",
394397
"override-type": "string | null"
@@ -677,6 +680,7 @@
677680
"createElementNS(namespaceURI: \"http://www.w3.org/2000/svg\", qualifiedName: \"circle\"): SVGCircleElement",
678681
"createElementNS(namespaceURI: \"http://www.w3.org/2000/svg\", qualifiedName: \"clipPath\"): SVGClipPathElement",
679682
"createElementNS(namespaceURI: \"http://www.w3.org/2000/svg\", qualifiedName: \"componentTransferFunction\"): SVGComponentTransferFunctionElement",
683+
"createElementNS(namespaceURI: \"http://www.w3.org/2000/svg\", qualifiedName: \"cursor\"): SVGCursorElement",
680684
"createElementNS(namespaceURI: \"http://www.w3.org/2000/svg\", qualifiedName: \"defs\"): SVGDefsElement",
681685
"createElementNS(namespaceURI: \"http://www.w3.org/2000/svg\", qualifiedName: \"desc\"): SVGDescElement",
682686
"createElementNS(namespaceURI: \"http://www.w3.org/2000/svg\", qualifiedName: \"ellipse\"): SVGEllipseElement",
@@ -808,6 +812,11 @@
808812
"srcdoc": {
809813
"name": "srcdoc",
810814
"override-type": "string"
815+
},
816+
"referrerPolicy": {
817+
"name": "referrerPolicy",
818+
"read-only": 1,
819+
"override-type": "ReferrerPolicy"
811820
}
812821
}
813822
}
@@ -1117,6 +1126,19 @@
11171126
"override-signatures": [
11181127
"elementsFromPoint(x: number, y: number): Element[]"
11191128
]
1129+
},
1130+
"caretRangeFromPoint": {
1131+
"name": "caretRangeFromPoint",
1132+
"deprecated": 1,
1133+
"override-signatures": [
1134+
"caretRangeFromPoint(x: number, y: number): Range"
1135+
]
1136+
},
1137+
"caretPositionFromPoint": {
1138+
"name": "caretPositionFromPoint",
1139+
"override-signatures": [
1140+
"caretPositionFromPoint(x: number, y: number): CaretPosition | null"
1141+
]
11201142
}
11211143
}
11221144
},
@@ -1986,6 +2008,76 @@
19862008
},
19872009
"WebGLVertexArrayObjectOES": {
19882010
"override-exposed": "Window Worker"
2011+
},
2012+
"SVGCursorElement": {
2013+
"name": "SVGCursorElement",
2014+
"extends": "SVGElement",
2015+
"exposed": "Window",
2016+
"properties": {
2017+
"property": {
2018+
"x": {
2019+
"name": "x",
2020+
"read-only": 1,
2021+
"override-type": "SVGAnimatedLength"
2022+
},
2023+
"y": {
2024+
"name": "y",
2025+
"read-only": 1,
2026+
"override-type": "SVGAnimatedLength"
2027+
}
2028+
}
2029+
}
2030+
},
2031+
"SVGAnimationElement": {
2032+
"name": "SVGAnimationElement",
2033+
"extends": "SVGElement",
2034+
"exposed": "Window",
2035+
"properties": {
2036+
"property": {
2037+
"targetElement": {
2038+
"name": "targetElement",
2039+
"read-only": 1,
2040+
"override-type": "SVGElement"
2041+
}
2042+
}
2043+
},
2044+
"methods": {
2045+
"method": {
2046+
"getStartTime": {
2047+
"name": "getStartTime",
2048+
"override-signatures": [
2049+
"getStartTime(): number"
2050+
]
2051+
},
2052+
"getCurrentTime": {
2053+
"name": "getCurrentTime",
2054+
"override-signatures": [
2055+
"getCurrentTime(): number"
2056+
]
2057+
},
2058+
"getSimpleDuration": {
2059+
"name": "getSimpleDuration",
2060+
"override-signatures": [
2061+
"getSimpleDuration(): number"
2062+
]
2063+
}
2064+
}
2065+
}
2066+
},
2067+
"SVGAnimateElement": {
2068+
"name": "SVGAnimateElement",
2069+
"extends": "SVGAnimationElement",
2070+
"exposed": "Window"
2071+
},
2072+
"SVGAnimateTransformElement": {
2073+
"name": "SVGAnimateTransformElement",
2074+
"extends": "SVGAnimationElement",
2075+
"exposed": "Window"
2076+
},
2077+
"SVGAnimateMotionElement": {
2078+
"name": "SVGAnimateMotionElement",
2079+
"extends": "SVGAnimationElement",
2080+
"exposed": "Window"
19892081
}
19902082
}
19912083
},
@@ -2085,12 +2177,13 @@
20852177
},
20862178
{
20872179
"new-type": "MouseWheelEvent",
2088-
"type": "WheelEvent"
2180+
"type": "WheelEvent",
2181+
"deprecated": 1
20892182
},
20902183
{
20912184
"new-type": "WindowProxy",
20922185
"type": "Window"
20932186
}
20942187
]
20952188
}
2096-
}
2189+
}

inputfiles/comments.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1593,7 +1593,7 @@
15931593
"comment": "/**\r\n * Gets a flag that specifies whether playback is paused.\r\n */"
15941594
},
15951595
"seeking": {
1596-
"comment": "/**\r\n * Gets a flag that indicates whether the the client is currently moving to a new playback position in the media resource.\r\n */"
1596+
"comment": "/**\r\n * Gets a flag that indicates whether the client is currently moving to a new playback position in the media resource.\r\n */"
15971597
},
15981598
"currentTime": {
15991599
"comment": "/**\r\n * Gets or sets the current playback position, in seconds.\r\n */"

inputfiles/idl/CSS Animations.widl

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
Constructor(CSSOMString type, optional AnimationEventInit animationEventInitDict)]
33
interface AnimationEvent : Event {
44
readonly attribute CSSOMString animationName;
5-
readonly attribute float elapsedTime;
5+
readonly attribute double elapsedTime;
66
readonly attribute CSSOMString pseudoElement;
77
};
88
dictionary AnimationEventInit : EventInit {
99
CSSOMString animationName = "";
10-
float elapsedTime = 0.0;
10+
double elapsedTime = 0.0;
1111
CSSOMString pseudoElement = "";
1212
};
1313

@@ -32,9 +32,21 @@ interface CSSKeyframesRule : CSSRule {
3232
CSSKeyframeRule? findRule(CSSOMString select);
3333
};
3434

35-
partial interface GlobalEventHandlers {
35+
partial interface mixin GlobalEventHandlers {
3636
attribute EventHandler onanimationstart;
3737
attribute EventHandler onanimationiteration;
3838
attribute EventHandler onanimationend;
3939
attribute EventHandler onanimationcancel;
4040
};
41+
42+
partial interface CSSStyleDeclaration {
43+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString animationName;
44+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString animationDuration;
45+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString animationTimingFunction;
46+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString animationIterationCount;
47+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString animationDirection;
48+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString animationPlayState;
49+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString animationDelay;
50+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString animationFillMode;
51+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString animation;
52+
};

inputfiles/idl/CSS Transitions.widl

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1-
[Constructor(CSSOMString type, optional TransitionEventInit transitionEventInitDict)]
1+
[Exposed=Window,
2+
Constructor(CSSOMString type, optional TransitionEventInit transitionEventInitDict)]
23
interface TransitionEvent : Event {
34
readonly attribute CSSOMString propertyName;
4-
readonly attribute float elapsedTime;
5+
readonly attribute double elapsedTime;
56
readonly attribute CSSOMString pseudoElement;
67
};
78

89
dictionary TransitionEventInit : EventInit {
910
CSSOMString propertyName = "";
10-
float elapsedTime = 0.0;
11+
double elapsedTime = 0.0;
1112
CSSOMString pseudoElement = "";
1213
};
1314

@@ -17,3 +18,11 @@ partial interface GlobalEventHandlers {
1718
attribute EventHandler ontransitionend;
1819
attribute EventHandler ontransitioncancel;
1920
};
21+
22+
partial interface CSSStyleDeclaration {
23+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString transitionProperty;
24+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString transitionDuration;
25+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString transitionTimingFunction;
26+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString transitionDelay;
27+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString transition;
28+
};

inputfiles/idl/CSSOM View.widl

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
enum ScrollBehavior { "auto", "instant", "smooth" };
1+
enum ScrollBehavior { "auto", "smooth" };
22

33
dictionary ScrollOptions {
44
ScrollBehavior behavior = "auto";
@@ -36,7 +36,9 @@ partial interface Window {
3636

3737
// client
3838
[Replaceable] readonly attribute long screenX;
39+
[Replaceable] readonly attribute long screenLeft;
3940
[Replaceable] readonly attribute long screenY;
41+
[Replaceable] readonly attribute long screenTop;
4042
[Replaceable] readonly attribute long outerWidth;
4143
[Replaceable] readonly attribute long outerHeight;
4244
[Replaceable] readonly attribute double devicePixelRatio;
@@ -150,3 +152,7 @@ partial dictionary MouseEventInit {
150152
double clientX = 0.0;
151153
double clientY = 0.0;
152154
};
155+
156+
partial interface CSSStyleDeclaration {
157+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString scrollBehavior;
158+
};

0 commit comments

Comments
 (0)