Commit a529c876 authored by Ian Kilpatrick's avatar Ian Kilpatrick Committed by Commit Bot

[css-layout-api] Expose TypedOM to LayoutWorklet.

Bug: 726125
Change-Id: Ieb60376042e6caaa82c9aab005a41ce626bdb33b
Reviewed-on: https://chromium-review.googlesource.com/923378
Commit-Queue: Ian Kilpatrick <ikilpatrick@chromium.org>
Reviewed-by: default avatarnainar <nainar@chromium.org>
Cr-Commit-Position: refs/heads/master@{#537534}
parent ae686a1b
...@@ -256,11 +256,6 @@ CONSOLE MESSAGE: line 147: method getReader ...@@ -256,11 +256,6 @@ CONSOLE MESSAGE: line 147: method getReader
CONSOLE MESSAGE: line 147: method pipeThrough CONSOLE MESSAGE: line 147: method pipeThrough
CONSOLE MESSAGE: line 147: method pipeTo CONSOLE MESSAGE: line 147: method pipeTo
CONSOLE MESSAGE: line 147: method tee CONSOLE MESSAGE: line 147: method tee
CONSOLE MESSAGE: line 147: interface StylePropertyMap : StylePropertyMapReadOnly
CONSOLE MESSAGE: line 147: method append
CONSOLE MESSAGE: line 147: method constructor
CONSOLE MESSAGE: line 147: method delete
CONSOLE MESSAGE: line 147: method update
CONSOLE MESSAGE: line 147: interface StylePropertyMapReadOnly CONSOLE MESSAGE: line 147: interface StylePropertyMapReadOnly
CONSOLE MESSAGE: line 147: method constructor CONSOLE MESSAGE: line 147: method constructor
CONSOLE MESSAGE: line 147: method entries CONSOLE MESSAGE: line 147: method entries
...@@ -544,11 +539,6 @@ CONSOLE MESSAGE: line 147: method getReader ...@@ -544,11 +539,6 @@ CONSOLE MESSAGE: line 147: method getReader
CONSOLE MESSAGE: line 147: method pipeThrough CONSOLE MESSAGE: line 147: method pipeThrough
CONSOLE MESSAGE: line 147: method pipeTo CONSOLE MESSAGE: line 147: method pipeTo
CONSOLE MESSAGE: line 147: method tee CONSOLE MESSAGE: line 147: method tee
CONSOLE MESSAGE: line 147: interface StylePropertyMap : StylePropertyMapReadOnly
CONSOLE MESSAGE: line 147: method append
CONSOLE MESSAGE: line 147: method constructor
CONSOLE MESSAGE: line 147: method delete
CONSOLE MESSAGE: line 147: method update
CONSOLE MESSAGE: line 147: interface StylePropertyMapReadOnly CONSOLE MESSAGE: line 147: interface StylePropertyMapReadOnly
CONSOLE MESSAGE: line 147: method constructor CONSOLE MESSAGE: line 147: method constructor
CONSOLE MESSAGE: line 147: method entries CONSOLE MESSAGE: line 147: method entries
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
// https://drafts.css-houdini.org/css-typed-om/#imagevalue-objects // https://drafts.css-houdini.org/css-typed-om/#imagevalue-objects
[ [
RuntimeEnabled=CSSTypedOM, RuntimeEnabled=CSSTypedOM,
Exposed=(Window,PaintWorklet), Exposed=(Window,LayoutWorklet,PaintWorklet),
ImplementedAs=CSSStyleImageValue ImplementedAs=CSSStyleImageValue
] interface CSSImageValue : CSSResourceValue { ] interface CSSImageValue : CSSResourceValue {
readonly attribute double? intrinsicWidth; readonly attribute double? intrinsicWidth;
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
[ [
Constructor(DOMString keyword), Constructor(DOMString keyword),
RuntimeEnabled=CSSTypedOM, RuntimeEnabled=CSSTypedOM,
Exposed=(Window,PaintWorklet), Exposed=(Window,LayoutWorklet,PaintWorklet),
RaisesException=Constructor RaisesException=Constructor
] interface CSSKeywordValue : CSSStyleValue { ] interface CSSKeywordValue : CSSStyleValue {
[RaisesException=Setter] attribute DOMString value; [RaisesException=Setter] attribute DOMString value;
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
[ [
Constructor(CSSNumberish arg), Constructor(CSSNumberish arg),
RuntimeEnabled=CSSTypedOM, RuntimeEnabled=CSSTypedOM,
Exposed=(Window,PaintWorklet) Exposed=(Window,LayoutWorklet,PaintWorklet)
] interface CSSMathInvert : CSSMathValue { ] interface CSSMathInvert : CSSMathValue {
readonly attribute CSSNumberish value; readonly attribute CSSNumberish value;
}; };
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
[ [
Constructor(CSSNumberish... args), Constructor(CSSNumberish... args),
RuntimeEnabled=CSSTypedOM, RuntimeEnabled=CSSTypedOM,
Exposed=(Window,PaintWorklet), Exposed=(Window,LayoutWorklet,PaintWorklet),
RaisesException=Constructor RaisesException=Constructor
] interface CSSMathMax : CSSMathValue { ] interface CSSMathMax : CSSMathValue {
readonly attribute CSSNumericArray values; readonly attribute CSSNumericArray values;
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
[ [
Constructor(CSSNumberish... args), Constructor(CSSNumberish... args),
RuntimeEnabled=CSSTypedOM, RuntimeEnabled=CSSTypedOM,
Exposed=(Window,PaintWorklet), Exposed=(Window,LayoutWorklet,PaintWorklet),
RaisesException=Constructor RaisesException=Constructor
] interface CSSMathMin : CSSMathValue { ] interface CSSMathMin : CSSMathValue {
readonly attribute CSSNumericArray values; readonly attribute CSSNumericArray values;
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
[ [
Constructor(CSSNumberish arg), Constructor(CSSNumberish arg),
RuntimeEnabled=CSSTypedOM, RuntimeEnabled=CSSTypedOM,
Exposed=(Window,PaintWorklet) Exposed=(Window,LayoutWorklet,PaintWorklet)
] interface CSSMathNegate : CSSMathValue { ] interface CSSMathNegate : CSSMathValue {
readonly attribute CSSNumberish value; readonly attribute CSSNumberish value;
}; };
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
[ [
Constructor(CSSNumberish... args), Constructor(CSSNumberish... args),
RuntimeEnabled=CSSTypedOM, RuntimeEnabled=CSSTypedOM,
Exposed=(Window,PaintWorklet), Exposed=(Window,LayoutWorklet,PaintWorklet),
RaisesException=Constructor RaisesException=Constructor
] interface CSSMathProduct : CSSMathValue { ] interface CSSMathProduct : CSSMathValue {
readonly attribute CSSNumericArray values; readonly attribute CSSNumericArray values;
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
[ [
Constructor(CSSNumberish... args), Constructor(CSSNumberish... args),
RuntimeEnabled=CSSTypedOM, RuntimeEnabled=CSSTypedOM,
Exposed=(Window,PaintWorklet), Exposed=(Window,LayoutWorklet,PaintWorklet),
RaisesException=Constructor RaisesException=Constructor
] interface CSSMathSum : CSSMathValue { ] interface CSSMathSum : CSSMathValue {
readonly attribute CSSNumericArray values; readonly attribute CSSNumericArray values;
......
...@@ -15,7 +15,7 @@ enum CSSMathOperator { ...@@ -15,7 +15,7 @@ enum CSSMathOperator {
[ [
RuntimeEnabled=CSSTypedOM, RuntimeEnabled=CSSTypedOM,
Exposed=(Window,PaintWorklet) Exposed=(Window,LayoutWorklet,PaintWorklet)
] interface CSSMathValue : CSSNumericValue { ] interface CSSMathValue : CSSNumericValue {
[ImplementedAs=getOperator] readonly attribute CSSMathOperator operator; [ImplementedAs=getOperator] readonly attribute CSSMathOperator operator;
}; };
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
Constructor(DOMMatrixReadOnly matrix, Constructor(DOMMatrixReadOnly matrix,
optional CSSMatrixComponentOptions options), optional CSSMatrixComponentOptions options),
RuntimeEnabled=CSSTypedOM, RuntimeEnabled=CSSTypedOM,
Exposed=(Window,PaintWorklet) Exposed=(Window,LayoutWorklet,PaintWorklet)
] interface CSSMatrixComponent : CSSTransformComponent { ] interface CSSMatrixComponent : CSSTransformComponent {
attribute DOMMatrix matrix; attribute DOMMatrix matrix;
}; };
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
// https://drafts.css-houdini.org/css-typed-om-1/#cssmathsum // https://drafts.css-houdini.org/css-typed-om-1/#cssmathsum
[ [
RuntimeEnabled=CSSTypedOM, RuntimeEnabled=CSSTypedOM,
Exposed=(Window,PaintWorklet), Exposed=(Window,LayoutWorklet,PaintWorklet),
RaisesException=Constructor RaisesException=Constructor
] interface CSSNumericArray { ] interface CSSNumericArray {
readonly attribute unsigned long length; readonly attribute unsigned long length;
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
[ [
RuntimeEnabled=CSSTypedOM, RuntimeEnabled=CSSTypedOM,
Exposed=(Window,PaintWorklet) Exposed=(Window,LayoutWorklet,PaintWorklet)
] enum CSSNumericBaseType { ] enum CSSNumericBaseType {
"length", "length",
"angle", "angle",
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
// https://drafts.css-houdini.org/css-typed-om-1/#cssnumerictype // https://drafts.css-houdini.org/css-typed-om-1/#cssnumerictype
[ [
Exposed(Window CSSTypedOM, PaintWorklet CSSTypedOM) Exposed=(Window,LayoutWorklet,PaintWorklet)
] dictionary CSSNumericType { ] dictionary CSSNumericType {
long length; long length;
long angle; long angle;
......
...@@ -8,7 +8,7 @@ typedef (double or CSSNumericValue) CSSNumberish; ...@@ -8,7 +8,7 @@ typedef (double or CSSNumericValue) CSSNumberish;
[ [
RuntimeEnabled=CSSTypedOM, RuntimeEnabled=CSSTypedOM,
Exposed=(Window,PaintWorklet) Exposed=(Window,LayoutWorklet,PaintWorklet)
] interface CSSNumericValue : CSSStyleValue { ] interface CSSNumericValue : CSSStyleValue {
[RaisesException, NewObject] CSSNumericValue add(CSSNumberish... values); [RaisesException, NewObject] CSSNumericValue add(CSSNumberish... values);
[RaisesException, NewObject] CSSNumericValue sub(CSSNumberish... values); [RaisesException, NewObject] CSSNumericValue sub(CSSNumberish... values);
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
[ [
Constructor(CSSNumericValue length), Constructor(CSSNumericValue length),
RuntimeEnabled=CSSTypedOM, RuntimeEnabled=CSSTypedOM,
Exposed=(Window,PaintWorklet), Exposed=(Window,LayoutWorklet,PaintWorklet),
RaisesException=Constructor RaisesException=Constructor
] interface CSSPerspective : CSSTransformComponent { ] interface CSSPerspective : CSSTransformComponent {
[RaisesException=Setter] attribute CSSNumericValue length; [RaisesException=Setter] attribute CSSNumericValue length;
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
[ [
Constructor(CSSNumericValue x, CSSNumericValue y), Constructor(CSSNumericValue x, CSSNumericValue y),
RuntimeEnabled=CSSTypedOM, RuntimeEnabled=CSSTypedOM,
Exposed=(Window,PaintWorklet), Exposed=(Window,LayoutWorklet,PaintWorklet),
RaisesException=Constructor RaisesException=Constructor
] interface CSSPositionValue : CSSStyleValue { ] interface CSSPositionValue : CSSStyleValue {
[RaisesException=Setter] attribute CSSNumericValue x; [RaisesException=Setter] attribute CSSNumericValue x;
......
...@@ -11,7 +11,7 @@ enum CSSResourceState { ...@@ -11,7 +11,7 @@ enum CSSResourceState {
[ [
RuntimeEnabled=CSSTypedOM, RuntimeEnabled=CSSTypedOM,
Exposed=(Window,PaintWorklet) Exposed=(Window,LayoutWorklet,PaintWorklet)
] interface CSSResourceValue : CSSStyleValue { ] interface CSSResourceValue : CSSStyleValue {
readonly attribute CSSResourceState state; readonly attribute CSSResourceState state;
}; };
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
Constructor(CSSNumericValue angleValue), Constructor(CSSNumericValue angleValue),
Constructor(CSSNumberish x, CSSNumberish y, CSSNumberish z, CSSNumericValue angle), Constructor(CSSNumberish x, CSSNumberish y, CSSNumberish z, CSSNumericValue angle),
RuntimeEnabled=CSSTypedOM, RuntimeEnabled=CSSTypedOM,
Exposed=(Window,PaintWorklet), Exposed=(Window,LayoutWorklet,PaintWorklet),
RaisesException=Constructor RaisesException=Constructor
] interface CSSRotate : CSSTransformComponent { ] interface CSSRotate : CSSTransformComponent {
[RaisesException=Setter] attribute CSSNumericValue angle; [RaisesException=Setter] attribute CSSNumericValue angle;
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
[ [
Constructor(CSSNumberish x, CSSNumberish y, optional CSSNumberish z), Constructor(CSSNumberish x, CSSNumberish y, optional CSSNumberish z),
RuntimeEnabled=CSSTypedOM, RuntimeEnabled=CSSTypedOM,
Exposed=(Window,PaintWorklet), Exposed=(Window,LayoutWorklet,PaintWorklet),
RaisesException=Constructor RaisesException=Constructor
] interface CSSScale : CSSTransformComponent { ] interface CSSScale : CSSTransformComponent {
[RaisesException=Setter] attribute CSSNumberish x; [RaisesException=Setter] attribute CSSNumberish x;
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
[ [
Constructor(CSSNumericValue ax, CSSNumericValue ay), Constructor(CSSNumericValue ax, CSSNumericValue ay),
RuntimeEnabled=CSSTypedOM, RuntimeEnabled=CSSTypedOM,
Exposed=(Window,PaintWorklet), Exposed=(Window,LayoutWorklet,PaintWorklet),
RaisesException=Constructor RaisesException=Constructor
] interface CSSSkew : CSSTransformComponent { ] interface CSSSkew : CSSTransformComponent {
[RaisesException=Setter] attribute CSSNumericValue ax; [RaisesException=Setter] attribute CSSNumericValue ax;
......
...@@ -12,4 +12,4 @@ ...@@ -12,4 +12,4 @@
RaisesException=Constructor] RaisesException=Constructor]
interface CSSSkewX : CSSTransformComponent { interface CSSSkewX : CSSTransformComponent {
[RaisesException=Setter] attribute CSSNumericValue ax; [RaisesException=Setter] attribute CSSNumericValue ax;
}; };
\ No newline at end of file
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
// base CSSStyleValues. // base CSSStyleValues.
// Spec: https://drafts.css-houdini.org/css-typed-om/#stylevalue-objects // Spec: https://drafts.css-houdini.org/css-typed-om/#stylevalue-objects
[ [
Exposed(Window CSSTypedOM,PaintWorklet CSSPaintAPI) Exposed(Window CSSTypedOM,LayoutWorklet CSSTypedOM,PaintWorklet CSSPaintAPI)
] interface CSSStyleValue { ] interface CSSStyleValue {
stringifier; stringifier;
// Putting Exposed=Window in the next line makes |parse| not exposed to PaintWorklet. // Putting Exposed=Window in the next line makes |parse| not exposed to PaintWorklet.
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
// Spec: https://drafts.css-houdini.org/css-typed-om/#csstransformcomponent // Spec: https://drafts.css-houdini.org/css-typed-om/#csstransformcomponent
[ [
RuntimeEnabled=CSSTypedOM, RuntimeEnabled=CSSTypedOM,
Exposed=(Window,PaintWorklet) Exposed=(Window,LayoutWorklet,PaintWorklet)
] interface CSSTransformComponent { ] interface CSSTransformComponent {
stringifier; stringifier;
attribute boolean is2D; attribute boolean is2D;
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
Constructor(sequence<CSSTransformComponent> transforms), Constructor(sequence<CSSTransformComponent> transforms),
RaisesException=Constructor, RaisesException=Constructor,
RuntimeEnabled=CSSTypedOM, RuntimeEnabled=CSSTypedOM,
Exposed=(Window,PaintWorklet) Exposed=(Window,LayoutWorklet,PaintWorklet)
] interface CSSTransformValue : CSSStyleValue { ] interface CSSTransformValue : CSSStyleValue {
// https://github.com/w3c/css-houdini-drafts/issues/358 // https://github.com/w3c/css-houdini-drafts/issues/358
readonly attribute unsigned long length; readonly attribute unsigned long length;
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
Constructor(CSSNumericValue x, CSSNumericValue y, Constructor(CSSNumericValue x, CSSNumericValue y,
optional CSSNumericValue z), optional CSSNumericValue z),
RuntimeEnabled=CSSTypedOM, RuntimeEnabled=CSSTypedOM,
Exposed=(Window,PaintWorklet), Exposed=(Window,LayoutWorklet,PaintWorklet),
RaisesException=Constructor RaisesException=Constructor
] interface CSSTranslate : CSSTransformComponent { ] interface CSSTranslate : CSSTransformComponent {
[RaisesException=Setter] attribute CSSNumericValue x; [RaisesException=Setter] attribute CSSNumericValue x;
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
Constructor(USVString url), Constructor(USVString url),
ConstructorCallWith=ScriptState, ConstructorCallWith=ScriptState,
RuntimeEnabled=CSSTypedOM, RuntimeEnabled=CSSTypedOM,
Exposed=(Window,PaintWorklet), Exposed=(Window,LayoutWorklet,PaintWorklet),
RaisesException=Constructor RaisesException=Constructor
] interface CSSURLImageValue : CSSImageValue { ] interface CSSURLImageValue : CSSImageValue {
readonly attribute USVString url; readonly attribute USVString url;
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
Constructor(double value, DOMString unit), Constructor(double value, DOMString unit),
RaisesException=Constructor, RaisesException=Constructor,
RuntimeEnabled=CSSTypedOM, RuntimeEnabled=CSSTypedOM,
Exposed=(Window,PaintWorklet) Exposed=(Window,LayoutWorklet,PaintWorklet)
] interface CSSUnitValue : CSSNumericValue { ] interface CSSUnitValue : CSSNumericValue {
[EnforceRange] attribute double value; [EnforceRange] attribute double value;
readonly attribute DOMString unit; readonly attribute DOMString unit;
......
...@@ -8,11 +8,11 @@ ...@@ -8,11 +8,11 @@
[ [
Constructor(sequence<CSSUnparsedSegment> members), Constructor(sequence<CSSUnparsedSegment> members),
RuntimeEnabled=CSSTypedOM, RuntimeEnabled=CSSTypedOM,
Exposed=(Window,PaintWorklet) Exposed=(Window,LayoutWorklet,PaintWorklet)
] interface CSSUnparsedValue : CSSStyleValue { ] interface CSSUnparsedValue : CSSStyleValue {
iterable<CSSUnparsedSegment>; iterable<CSSUnparsedSegment>;
readonly attribute unsigned long length; readonly attribute unsigned long length;
[RaisesException] getter CSSUnparsedSegment (unsigned long index); [RaisesException] getter CSSUnparsedSegment (unsigned long index);
}; };
typedef (DOMString or CSSVariableReferenceValue) CSSUnparsedSegment; typedef (DOMString or CSSVariableReferenceValue) CSSUnparsedSegment;
\ No newline at end of file
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
[ [
Constructor(DOMString variable, optional CSSUnparsedValue fallback), Constructor(DOMString variable, optional CSSUnparsedValue fallback),
RuntimeEnabled=CSSTypedOM, RuntimeEnabled=CSSTypedOM,
Exposed=(Window,PaintWorklet), Exposed=(Window,LayoutWorklet,PaintWorklet),
RaisesException=Constructor, RaisesException=Constructor,
ImplementedAs=CSSStyleVariableReferenceValue ImplementedAs=CSSStyleVariableReferenceValue
] interface CSSVariableReferenceValue { ] interface CSSVariableReferenceValue {
......
...@@ -8,7 +8,7 @@ callback UpdateFunction = CSSStyleValue (CSSStyleValue oldValue); ...@@ -8,7 +8,7 @@ callback UpdateFunction = CSSStyleValue (CSSStyleValue oldValue);
[ [
RuntimeEnabled=CSSTypedOM, RuntimeEnabled=CSSTypedOM,
Exposed=(Window,PaintWorklet) Exposed=(Window)
] interface StylePropertyMap : StylePropertyMapReadOnly { ] interface StylePropertyMap : StylePropertyMapReadOnly {
[RaisesException, CallWith=ExecutionContext] void append(DOMString property, (CSSStyleValue or DOMString)... values); [RaisesException, CallWith=ExecutionContext] void append(DOMString property, (CSSStyleValue or DOMString)... values);
[RaisesException, ImplementedAs=remove] void delete(DOMString property); [RaisesException, ImplementedAs=remove] void delete(DOMString property);
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
// found in the LICENSE file. // found in the LICENSE file.
[ [
Exposed(Window CSSTypedOM,PaintWorklet CSSPaintAPI) Exposed(Window CSSTypedOM,LayoutWorklet CSSTypedOM,PaintWorklet CSSPaintAPI)
] interface StylePropertyMapReadOnly { ] interface StylePropertyMapReadOnly {
[RaisesException] CSSStyleValue? get(DOMString property); [RaisesException] CSSStyleValue? get(DOMString property);
[RaisesException] sequence<CSSStyleValue> getAll(DOMString property); [RaisesException] sequence<CSSStyleValue> getAll(DOMString property);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment