Skip to content

Commit 75301c8

Browse files
authored
DOM update 2019-11-19 (#35207)
* DOM update 2019-11-19 * update baselines * update more baselines
1 parent 571ca60 commit 75301c8

11 files changed

+96
-58
lines changed

src/lib/dom.generated.d.ts

+58-33
Original file line numberDiff line numberDiff line change
@@ -1496,6 +1496,16 @@ interface RTCTransportStats extends RTCStats {
14961496
selectedCandidatePairId?: string;
14971497
}
14981498

1499+
interface ReadableStreamReadDoneResult<T> {
1500+
done: true;
1501+
value?: T;
1502+
}
1503+
1504+
interface ReadableStreamReadValueResult<T> {
1505+
done: false;
1506+
value: T;
1507+
}
1508+
14991509
interface RegistrationOptions {
15001510
scope?: string;
15011511
type?: WorkerType;
@@ -2815,7 +2825,7 @@ interface CSSStyleDeclaration {
28152825
clip: string;
28162826
clipPath: string;
28172827
clipRule: string;
2818-
color: string | null;
2828+
color: string;
28192829
colorInterpolation: string;
28202830
colorInterpolationFilters: string;
28212831
columnCount: string;
@@ -2992,7 +3002,7 @@ interface CSSStyleDeclaration {
29923002
msWrapThrough: string;
29933003
objectFit: string;
29943004
objectPosition: string;
2995-
opacity: string | null;
3005+
opacity: string;
29963006
order: string;
29973007
orphans: string;
29983008
outline: string;
@@ -3032,14 +3042,14 @@ interface CSSStyleDeclaration {
30323042
right: string;
30333043
rotate: string;
30343044
rowGap: string;
3035-
rubyAlign: string | null;
3045+
rubyAlign: string;
30363046
rubyOverhang: string | null;
3037-
rubyPosition: string | null;
3047+
rubyPosition: string;
30383048
scale: string;
30393049
scrollBehavior: string;
30403050
shapeRendering: string;
3041-
stopColor: string | null;
3042-
stopOpacity: string | null;
3051+
stopColor: string;
3052+
stopOpacity: string;
30433053
stroke: string;
30443054
strokeDasharray: string;
30453055
strokeDashoffset: string;
@@ -3052,7 +3062,7 @@ interface CSSStyleDeclaration {
30523062
tableLayout: string;
30533063
textAlign: string;
30543064
textAlignLast: string;
3055-
textAnchor: string | null;
3065+
textAnchor: string;
30563066
textCombineUpright: string;
30573067
textDecoration: string;
30583068
textDecorationColor: string;
@@ -3344,7 +3354,7 @@ interface CacheStorage {
33443354
delete(cacheName: string): Promise<boolean>;
33453355
has(cacheName: string): Promise<boolean>;
33463356
keys(): Promise<string[]>;
3347-
match(request: RequestInfo, options?: CacheQueryOptions): Promise<Response | undefined>;
3357+
match(request: RequestInfo, options?: MultiCacheQueryOptions): Promise<Response | undefined>;
33483358
open(cacheName: string): Promise<Cache>;
33493359
}
33503360

@@ -4016,6 +4026,7 @@ interface DOMMatrixReadOnly {
40164026
toJSON(): any;
40174027
transformPoint(point?: DOMPointInit): DOMPoint;
40184028
translate(tx?: number, ty?: number, tz?: number): DOMMatrix;
4029+
toString(): string;
40194030
}
40204031

40214032
declare var DOMMatrixReadOnly: {
@@ -4024,6 +4035,7 @@ declare var DOMMatrixReadOnly: {
40244035
fromFloat32Array(array32: Float32Array): DOMMatrixReadOnly;
40254036
fromFloat64Array(array64: Float64Array): DOMMatrixReadOnly;
40264037
fromMatrix(other?: DOMMatrixInit): DOMMatrixReadOnly;
4038+
toString(): string;
40274039
};
40284040

40294041
/** Provides the ability to parse XML or HTML source code from a string into a DOM Document. */
@@ -4181,6 +4193,7 @@ interface DOMTokenList {
41814193
* Can be set, to change the associated attribute.
41824194
*/
41834195
value: string;
4196+
toString(): string;
41844197
/**
41854198
* Adds all arguments passed, except those already present.
41864199
*
@@ -4416,6 +4429,7 @@ interface DeviceMotionEvent extends Event {
44164429
declare var DeviceMotionEvent: {
44174430
prototype: DeviceMotionEvent;
44184431
new(type: string, eventInitDict?: DeviceMotionEventInit): DeviceMotionEvent;
4432+
requestPermission(): Promise<PermissionState>;
44194433
};
44204434

44214435
interface DeviceMotionEventAcceleration {
@@ -4441,6 +4455,7 @@ interface DeviceOrientationEvent extends Event {
44414455
declare var DeviceOrientationEvent: {
44424456
prototype: DeviceOrientationEvent;
44434457
new(type: string, eventInitDict?: DeviceOrientationEventInit): DeviceOrientationEvent;
4458+
requestPermission(): Promise<PermissionState>;
44444459
};
44454460

44464461
/** Provides information about the rate at which the device is rotating around all three axes. */
@@ -6096,10 +6111,10 @@ interface GlobalEventHandlers {
60966111
*/
60976112
ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
60986113
ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
6099-
ontouchcancel: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null;
6100-
ontouchend: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null;
6101-
ontouchmove: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null;
6102-
ontouchstart: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null;
6114+
ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null;
6115+
ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null;
6116+
ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null;
6117+
ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null;
61036118
ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
61046119
ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
61056120
ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
@@ -7059,6 +7074,7 @@ interface HTMLHyperlinkElementUtils {
70597074
host: string;
70607075
hostname: string;
70617076
href: string;
7077+
toString(): string;
70627078
readonly origin: string;
70637079
password: string;
70647080
pathname: string;
@@ -7344,7 +7360,7 @@ interface HTMLInputElement extends HTMLElement {
73447360
* When present, marks an element that can't be submitted without a value.
73457361
*/
73467362
required: boolean;
7347-
selectionDirection: string | null;
7363+
selectionDirection: "forward" | "backward" | "none" | null;
73487364
/**
73497365
* Gets or sets the end position or offset of a text selection.
73507366
*/
@@ -8935,7 +8951,7 @@ interface HTMLTextAreaElement extends HTMLElement {
89358951
* Sets or retrieves the number of horizontal rows contained in the object.
89368952
*/
89378953
rows: number;
8938-
selectionDirection: string;
8954+
selectionDirection: "forward" | "backward" | "none";
89398955
/**
89408956
* Gets or sets the end position or offset of a text selection.
89418957
*/
@@ -9912,6 +9928,7 @@ interface Location {
99129928
* Can be set, to navigate to the given URL.
99139929
*/
99149930
href: string;
9931+
toString(): string;
99159932
/**
99169933
* Returns the Location object's URL's origin.
99179934
*/
@@ -10370,10 +10387,10 @@ declare var MediaKeys: {
1037010387
interface MediaList {
1037110388
readonly length: number;
1037210389
mediaText: string;
10390+
toString(): string;
1037310391
appendMedium(medium: string): void;
1037410392
deleteMedium(medium: string): void;
1037510393
item(index: number): string | null;
10376-
toString(): number;
1037710394
[index: number]: string;
1037810395
}
1037910396

@@ -10985,7 +11002,7 @@ interface Node extends EventTarget {
1098511002
/**
1098611003
* Returns the previous sibling.
1098711004
*/
10988-
readonly previousSibling: Node | null;
11005+
readonly previousSibling: ChildNode | null;
1098911006
textContent: string | null;
1099011007
appendChild<T extends Node>(newChild: T): T;
1099111008
/**
@@ -12640,6 +12657,7 @@ interface Range extends AbstractRange {
1264012657
setStartAfter(node: Node): void;
1264112658
setStartBefore(node: Node): void;
1264212659
surroundContents(newParent: Node): void;
12660+
toString(): string;
1264312661
readonly END_TO_END: number;
1264412662
readonly END_TO_START: number;
1264512663
readonly START_TO_END: number;
@@ -12653,6 +12671,7 @@ declare var Range: {
1265312671
readonly END_TO_START: number;
1265412672
readonly START_TO_END: number;
1265512673
readonly START_TO_START: number;
12674+
toString(): string;
1265612675
};
1265712676

1265812677
interface ReadableByteStreamController {
@@ -12707,11 +12726,6 @@ interface ReadableStreamDefaultReader<R = any> {
1270712726
releaseLock(): void;
1270812727
}
1270912728

12710-
interface ReadableStreamReadResult<T> {
12711-
done: boolean;
12712-
value: T;
12713-
}
12714-
1271512729
interface ReadableStreamReader<R = any> {
1271612730
cancel(): Promise<void>;
1271712731
read(): Promise<ReadableStreamReadResult<R>>;
@@ -14358,7 +14372,7 @@ declare var SVGPathSegMovetoRel: {
1435814372
};
1435914373

1436014374
/** Corresponds to the <pattern> element. */
14361-
interface SVGPatternElement extends SVGElement, SVGFitToViewBox, SVGTests, SVGURIReference {
14375+
interface SVGPatternElement extends SVGElement, SVGFitToViewBox, SVGURIReference {
1436214376
readonly height: SVGAnimatedLength;
1436314377
readonly patternContentUnits: SVGAnimatedEnumeration;
1436414378
readonly patternTransform: SVGAnimatedTransformList;
@@ -14464,6 +14478,7 @@ declare var SVGPreserveAspectRatio: {
1446414478
interface SVGRadialGradientElement extends SVGGradientElement {
1446514479
readonly cx: SVGAnimatedLength;
1446614480
readonly cy: SVGAnimatedLength;
14481+
readonly fr: SVGAnimatedLength;
1446714482
readonly fx: SVGAnimatedLength;
1446814483
readonly fy: SVGAnimatedLength;
1446914484
readonly r: SVGAnimatedLength;
@@ -14680,13 +14695,13 @@ interface SVGTests {
1468014695
interface SVGTextContentElement extends SVGGraphicsElement {
1468114696
readonly lengthAdjust: SVGAnimatedEnumeration;
1468214697
readonly textLength: SVGAnimatedLength;
14683-
getCharNumAtPosition(point: SVGPoint): number;
14698+
getCharNumAtPosition(point?: DOMPointInit): number;
1468414699
getComputedTextLength(): number;
14685-
getEndPositionOfChar(charnum: number): SVGPoint;
14686-
getExtentOfChar(charnum: number): SVGRect;
14700+
getEndPositionOfChar(charnum: number): DOMPoint;
14701+
getExtentOfChar(charnum: number): DOMRect;
1468714702
getNumberOfChars(): number;
1468814703
getRotationOfChar(charnum: number): number;
14689-
getStartPositionOfChar(charnum: number): SVGPoint;
14704+
getStartPositionOfChar(charnum: number): DOMPoint;
1469014705
getSubStringLength(charnum: number, nchars: number): number;
1469114706
selectSubString(charnum: number, nchars: number): void;
1469214707
readonly LENGTHADJUST_SPACING: number;
@@ -15029,11 +15044,13 @@ interface Selection {
1502915044
selectAllChildren(node: Node): void;
1503015045
setBaseAndExtent(anchorNode: Node, anchorOffset: number, focusNode: Node, focusOffset: number): void;
1503115046
setPosition(node: Node | null, offset?: number): void;
15047+
toString(): string;
1503215048
}
1503315049

1503415050
declare var Selection: {
1503515051
prototype: Selection;
1503615052
new(): Selection;
15053+
toString(): string;
1503715054
};
1503815055

1503915056
interface ServiceUIFrameContext {
@@ -15660,6 +15677,8 @@ interface TextDecoderCommon {
1566015677
}
1566115678

1566215679
interface TextDecoderStream extends GenericTransformStream, TextDecoderCommon {
15680+
readonly readable: ReadableStream<string>;
15681+
readonly writable: WritableStream<BufferSource>;
1566315682
}
1566415683

1566515684
declare var TextDecoderStream: {
@@ -15692,6 +15711,8 @@ interface TextEncoderCommon {
1569215711
}
1569315712

1569415713
interface TextEncoderStream extends GenericTransformStream, TextEncoderCommon {
15714+
readonly readable: ReadableStream<Uint8Array>;
15715+
readonly writable: WritableStream<string>;
1569515716
}
1569615717

1569715718
declare var TextEncoderStream: {
@@ -16034,6 +16055,7 @@ interface URL {
1603416055
host: string;
1603516056
hostname: string;
1603616057
href: string;
16058+
toString(): string;
1603716059
readonly origin: string;
1603816060
password: string;
1603916061
pathname: string;
@@ -16081,12 +16103,14 @@ interface URLSearchParams {
1608116103
*/
1608216104
set(name: string, value: string): void;
1608316105
sort(): void;
16106+
toString(): string;
1608416107
forEach(callbackfn: (value: string, key: string, parent: URLSearchParams) => void, thisArg?: any): void;
1608516108
}
1608616109

1608716110
declare var URLSearchParams: {
1608816111
prototype: URLSearchParams;
1608916112
new(init?: string[][] | Record<string, string> | string | URLSearchParams): URLSearchParams;
16113+
toString(): string;
1609016114
};
1609116115

1609216116
/** This WebVR API interface represents any VR device supported by this API. It includes generic information such as device IDs and descriptions, as well as methods for starting to present a VR scene, retrieving eye parameters and display capabilities, and other important functionality. */
@@ -18668,7 +18692,7 @@ interface WindowEventHandlersEventMap {
1866818692
"pagehide": PageTransitionEvent;
1866918693
"pageshow": PageTransitionEvent;
1867018694
"popstate": PopStateEvent;
18671-
"rejectionhandled": Event;
18695+
"rejectionhandled": PromiseRejectionEvent;
1867218696
"storage": StorageEvent;
1867318697
"unhandledrejection": PromiseRejectionEvent;
1867418698
"unload": Event;
@@ -18687,7 +18711,7 @@ interface WindowEventHandlers {
1868718711
onpagehide: ((this: WindowEventHandlers, ev: PageTransitionEvent) => any) | null;
1868818712
onpageshow: ((this: WindowEventHandlers, ev: PageTransitionEvent) => any) | null;
1868918713
onpopstate: ((this: WindowEventHandlers, ev: PopStateEvent) => any) | null;
18690-
onrejectionhandled: ((this: WindowEventHandlers, ev: Event) => any) | null;
18714+
onrejectionhandled: ((this: WindowEventHandlers, ev: PromiseRejectionEvent) => any) | null;
1869118715
onstorage: ((this: WindowEventHandlers, ev: StorageEvent) => any) | null;
1869218716
onunhandledrejection: ((this: WindowEventHandlers, ev: PromiseRejectionEvent) => any) | null;
1869318717
onunload: ((this: WindowEventHandlers, ev: Event) => any) | null;
@@ -19886,10 +19910,10 @@ declare var onsuspend: ((this: Window, ev: Event) => any) | null;
1988619910
*/
1988719911
declare var ontimeupdate: ((this: Window, ev: Event) => any) | null;
1988819912
declare var ontoggle: ((this: Window, ev: Event) => any) | null;
19889-
declare var ontouchcancel: ((this: Window, ev: TouchEvent) => any) | null;
19890-
declare var ontouchend: ((this: Window, ev: TouchEvent) => any) | null;
19891-
declare var ontouchmove: ((this: Window, ev: TouchEvent) => any) | null;
19892-
declare var ontouchstart: ((this: Window, ev: TouchEvent) => any) | null;
19913+
declare var ontouchcancel: ((this: Window, ev: TouchEvent) => any) | null | undefined;
19914+
declare var ontouchend: ((this: Window, ev: TouchEvent) => any) | null | undefined;
19915+
declare var ontouchmove: ((this: Window, ev: TouchEvent) => any) | null | undefined;
19916+
declare var ontouchstart: ((this: Window, ev: TouchEvent) => any) | null | undefined;
1989319917
declare var ontransitioncancel: ((this: Window, ev: TransitionEvent) => any) | null;
1989419918
declare var ontransitionend: ((this: Window, ev: TransitionEvent) => any) | null;
1989519919
declare var ontransitionrun: ((this: Window, ev: TransitionEvent) => any) | null;
@@ -19939,7 +19963,7 @@ declare var ononline: ((this: Window, ev: Event) => any) | null;
1993919963
declare var onpagehide: ((this: Window, ev: PageTransitionEvent) => any) | null;
1994019964
declare var onpageshow: ((this: Window, ev: PageTransitionEvent) => any) | null;
1994119965
declare var onpopstate: ((this: Window, ev: PopStateEvent) => any) | null;
19942-
declare var onrejectionhandled: ((this: Window, ev: Event) => any) | null;
19966+
declare var onrejectionhandled: ((this: Window, ev: PromiseRejectionEvent) => any) | null;
1994319967
declare var onstorage: ((this: Window, ev: StorageEvent) => any) | null;
1994419968
declare var onunhandledrejection: ((this: Window, ev: PromiseRejectionEvent) => any) | null;
1994519969
declare var onunload: ((this: Window, ev: Event) => any) | null;
@@ -19967,6 +19991,7 @@ type ConstrainDouble = number | ConstrainDoubleRange;
1996719991
type ConstrainBoolean = boolean | ConstrainBooleanParameters;
1996819992
type ConstrainDOMString = string | string[] | ConstrainDOMStringParameters;
1996919993
type PerformanceEntryList = PerformanceEntry[];
19994+
type ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableStreamReadDoneResult<T>;
1997019995
type VibratePattern = number | number[];
1997119996
type COSEAlgorithmIdentifier = number;
1997219997
type AuthenticatorSelectionList = AAGUID[];

0 commit comments

Comments
 (0)