Skip to content

Commit 908a260

Browse files
authored
Support [LegacyNullToEmptyString] (#870)
1 parent 6d687e5 commit 908a260

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+593
-568
lines changed

baselines/dom.generated.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18516,7 +18516,7 @@ interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandler
1851618516
/** @deprecated */
1851718517
releaseEvents(): void;
1851818518
resizeBy(x: number, y: number): void;
18519-
resizeTo(x: number, y: number): void;
18519+
resizeTo(width: number, height: number): void;
1852018520
scroll(options?: ScrollToOptions): void;
1852118521
scroll(x: number, y: number): void;
1852218522
scrollBy(options?: ScrollToOptions): void;
@@ -19545,7 +19545,7 @@ declare function prompt(message?: string, _default?: string): string | null;
1954519545
/** @deprecated */
1954619546
declare function releaseEvents(): void;
1954719547
declare function resizeBy(x: number, y: number): void;
19548-
declare function resizeTo(x: number, y: number): void;
19548+
declare function resizeTo(width: number, height: number): void;
1954919549
declare function scroll(options?: ScrollToOptions): void;
1955019550
declare function scroll(x: number, y: number): void;
1955119551
declare function scrollBy(options?: ScrollToOptions): void;

inputfiles/idl/CSS Animations.widl

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ partial interface mixin GlobalEventHandlers {
4040
};
4141

4242
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;
43+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString animationName;
44+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString animationDuration;
45+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString animationTimingFunction;
46+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString animationIterationCount;
47+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString animationDirection;
48+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString animationPlayState;
49+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString animationDelay;
50+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString animationFillMode;
51+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString animation;
5252
};
Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
partial interface CSSStyleDeclaration {
2-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString backgroundPosition;
3-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString backgroundPositionX;
4-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString backgroundPositionY;
5-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString backgroundPositionInline;
6-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString backgroundPositionBlock;
7-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString backgroundClip;
8-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderTopColor;
9-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderRightColor;
10-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderBottomColor;
11-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderLeftColor;
12-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderColor;
13-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderRadius;
14-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString cornerShape;
15-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString corners;
16-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderLimit;
17-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderClip;
18-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderClipTop;
19-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderClipRight;
20-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderClipBottom;
21-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderClipLeft;
2+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString backgroundPosition;
3+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString backgroundPositionX;
4+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString backgroundPositionY;
5+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString backgroundPositionInline;
6+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString backgroundPositionBlock;
7+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString backgroundClip;
8+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString borderTopColor;
9+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString borderRightColor;
10+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString borderBottomColor;
11+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString borderLeftColor;
12+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString borderColor;
13+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString borderRadius;
14+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString cornerShape;
15+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString corners;
16+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString borderLimit;
17+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString borderClip;
18+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString borderClipTop;
19+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString borderClipRight;
20+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString borderClipBottom;
21+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString borderClipLeft;
2222
};
Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,43 @@
11
partial interface CSSStyleDeclaration {
2-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString backgroundColor;
3-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString backgroundImage;
4-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString backgroundRepeat;
5-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString backgroundAttachment;
6-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString backgroundPosition;
7-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString backgroundClip;
8-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString backgroundOrigin;
9-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString backgroundSize;
10-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString background;
11-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderTopColor;
12-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderRightColor;
13-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderBottomColor;
14-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderLeftColor;
15-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderColor;
16-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderTopStyle;
17-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderRightStyle;
18-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderBottomStyle;
19-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderLeftStyle;
20-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderStyle;
21-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderTopWidth;
22-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderRightWidth;
23-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderBottomWidth;
24-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderLeftWidth;
25-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderWidth;
26-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderTop;
27-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderRight;
28-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderBottom;
29-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderLeft;
30-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString border;
31-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderTopLeftRadius;
32-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderTopRightRadius;
33-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderBottomRightRadius;
34-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderBottomLeftRadius;
35-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderRadius;
36-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderImageSource;
37-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderImageSlice;
38-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderImageWidth;
39-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderImageOutset;
40-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderImageRepeat;
41-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderImage;
42-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString boxShadow;
2+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString backgroundColor;
3+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString backgroundImage;
4+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString backgroundRepeat;
5+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString backgroundAttachment;
6+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString backgroundPosition;
7+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString backgroundClip;
8+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString backgroundOrigin;
9+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString backgroundSize;
10+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString background;
11+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString borderTopColor;
12+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString borderRightColor;
13+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString borderBottomColor;
14+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString borderLeftColor;
15+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString borderColor;
16+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString borderTopStyle;
17+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString borderRightStyle;
18+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString borderBottomStyle;
19+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString borderLeftStyle;
20+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString borderStyle;
21+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString borderTopWidth;
22+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString borderRightWidth;
23+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString borderBottomWidth;
24+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString borderLeftWidth;
25+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString borderWidth;
26+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString borderTop;
27+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString borderRight;
28+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString borderBottom;
29+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString borderLeft;
30+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString border;
31+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString borderTopLeftRadius;
32+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString borderTopRightRadius;
33+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString borderBottomRightRadius;
34+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString borderBottomLeftRadius;
35+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString borderRadius;
36+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString borderImageSource;
37+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString borderImageSlice;
38+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString borderImageWidth;
39+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString borderImageOutset;
40+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString borderImageRepeat;
41+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString borderImage;
42+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString boxShadow;
4343
};
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
partial interface CSSStyleDeclaration {
2-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString boxSizing;
3-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString outline;
4-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString outlineWidth;
5-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString outlineStyle;
6-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString outlineColor;
7-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString outlineOffset;
8-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString resize;
9-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString textOverflow;
10-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString cursor;
11-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString caretColor;
2+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString boxSizing;
3+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString outline;
4+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString outlineWidth;
5+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString outlineStyle;
6+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString outlineColor;
7+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString outlineOffset;
8+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString resize;
9+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString textOverflow;
10+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString cursor;
11+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString caretColor;
1212
};

inputfiles/idl/CSS Box Alignment.widl

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
partial interface CSSStyleDeclaration {
2-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString alignContent;
3-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString justifyContent;
4-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString placeContent;
5-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString justifySelf;
6-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString alignSelf;
7-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString placeSelf;
8-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString justifyItems;
9-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString alignItems;
10-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString placeItems;
11-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString rowGap;
12-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString columnGap;
13-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString gap;
14-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString gridRowGap;
15-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString gridColumnGap;
16-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString gridGap;
2+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString alignContent;
3+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString justifyContent;
4+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString placeContent;
5+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString justifySelf;
6+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString alignSelf;
7+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString placeSelf;
8+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString justifyItems;
9+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString alignItems;
10+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString placeItems;
11+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString rowGap;
12+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString columnGap;
13+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString gap;
14+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString gridRowGap;
15+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString gridColumnGap;
16+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString gridGap;
1717
};
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
partial interface CSSStyleDeclaration {
2-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString all;
2+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString all;
33
};

inputfiles/idl/CSS Color.widl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
partial interface CSSStyleDeclaration {
2-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString color;
3-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString opacity;
2+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString color;
3+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString opacity;
44
};

0 commit comments

Comments
 (0)