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
CONSOLE MESSAGE: line 147: method pipeThrough
CONSOLE MESSAGE: line 147: method pipeTo
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: method constructor
CONSOLE MESSAGE: line 147: method entries
......@@ -544,11 +539,6 @@ CONSOLE MESSAGE: line 147: method getReader
CONSOLE MESSAGE: line 147: method pipeThrough
CONSOLE MESSAGE: line 147: method pipeTo
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: method constructor
CONSOLE MESSAGE: line 147: method entries
......
......@@ -7,7 +7,7 @@
// https://drafts.css-houdini.org/css-typed-om/#imagevalue-objects
[
RuntimeEnabled=CSSTypedOM,
Exposed=(Window,PaintWorklet),
Exposed=(Window,LayoutWorklet,PaintWorklet),
ImplementedAs=CSSStyleImageValue
] interface CSSImageValue : CSSResourceValue {
readonly attribute double? intrinsicWidth;
......
......@@ -8,7 +8,7 @@
[
Constructor(DOMString keyword),
RuntimeEnabled=CSSTypedOM,
Exposed=(Window,PaintWorklet),
Exposed=(Window,LayoutWorklet,PaintWorklet),
RaisesException=Constructor
] interface CSSKeywordValue : CSSStyleValue {
[RaisesException=Setter] attribute DOMString value;
......
......@@ -7,7 +7,7 @@
[
Constructor(CSSNumberish arg),
RuntimeEnabled=CSSTypedOM,
Exposed=(Window,PaintWorklet)
Exposed=(Window,LayoutWorklet,PaintWorklet)
] interface CSSMathInvert : CSSMathValue {
readonly attribute CSSNumberish value;
};
......@@ -7,7 +7,7 @@
[
Constructor(CSSNumberish... args),
RuntimeEnabled=CSSTypedOM,
Exposed=(Window,PaintWorklet),
Exposed=(Window,LayoutWorklet,PaintWorklet),
RaisesException=Constructor
] interface CSSMathMax : CSSMathValue {
readonly attribute CSSNumericArray values;
......
......@@ -7,7 +7,7 @@
[
Constructor(CSSNumberish... args),
RuntimeEnabled=CSSTypedOM,
Exposed=(Window,PaintWorklet),
Exposed=(Window,LayoutWorklet,PaintWorklet),
RaisesException=Constructor
] interface CSSMathMin : CSSMathValue {
readonly attribute CSSNumericArray values;
......
......@@ -7,7 +7,7 @@
[
Constructor(CSSNumberish arg),
RuntimeEnabled=CSSTypedOM,
Exposed=(Window,PaintWorklet)
Exposed=(Window,LayoutWorklet,PaintWorklet)
] interface CSSMathNegate : CSSMathValue {
readonly attribute CSSNumberish value;
};
......@@ -7,7 +7,7 @@
[
Constructor(CSSNumberish... args),
RuntimeEnabled=CSSTypedOM,
Exposed=(Window,PaintWorklet),
Exposed=(Window,LayoutWorklet,PaintWorklet),
RaisesException=Constructor
] interface CSSMathProduct : CSSMathValue {
readonly attribute CSSNumericArray values;
......
......@@ -7,7 +7,7 @@
[
Constructor(CSSNumberish... args),
RuntimeEnabled=CSSTypedOM,
Exposed=(Window,PaintWorklet),
Exposed=(Window,LayoutWorklet,PaintWorklet),
RaisesException=Constructor
] interface CSSMathSum : CSSMathValue {
readonly attribute CSSNumericArray values;
......
......@@ -15,7 +15,7 @@ enum CSSMathOperator {
[
RuntimeEnabled=CSSTypedOM,
Exposed=(Window,PaintWorklet)
Exposed=(Window,LayoutWorklet,PaintWorklet)
] interface CSSMathValue : CSSNumericValue {
[ImplementedAs=getOperator] readonly attribute CSSMathOperator operator;
};
......@@ -9,7 +9,7 @@
Constructor(DOMMatrixReadOnly matrix,
optional CSSMatrixComponentOptions options),
RuntimeEnabled=CSSTypedOM,
Exposed=(Window,PaintWorklet)
Exposed=(Window,LayoutWorklet,PaintWorklet)
] interface CSSMatrixComponent : CSSTransformComponent {
attribute DOMMatrix matrix;
};
......@@ -6,7 +6,7 @@
// https://drafts.css-houdini.org/css-typed-om-1/#cssmathsum
[
RuntimeEnabled=CSSTypedOM,
Exposed=(Window,PaintWorklet),
Exposed=(Window,LayoutWorklet,PaintWorklet),
RaisesException=Constructor
] interface CSSNumericArray {
readonly attribute unsigned long length;
......
......@@ -4,7 +4,7 @@
[
RuntimeEnabled=CSSTypedOM,
Exposed=(Window,PaintWorklet)
Exposed=(Window,LayoutWorklet,PaintWorklet)
] enum CSSNumericBaseType {
"length",
"angle",
......@@ -17,7 +17,7 @@
// https://drafts.css-houdini.org/css-typed-om-1/#cssnumerictype
[
Exposed(Window CSSTypedOM, PaintWorklet CSSTypedOM)
Exposed=(Window,LayoutWorklet,PaintWorklet)
] dictionary CSSNumericType {
long length;
long angle;
......
......@@ -8,7 +8,7 @@ typedef (double or CSSNumericValue) CSSNumberish;
[
RuntimeEnabled=CSSTypedOM,
Exposed=(Window,PaintWorklet)
Exposed=(Window,LayoutWorklet,PaintWorklet)
] interface CSSNumericValue : CSSStyleValue {
[RaisesException, NewObject] CSSNumericValue add(CSSNumberish... values);
[RaisesException, NewObject] CSSNumericValue sub(CSSNumberish... values);
......
......@@ -8,7 +8,7 @@
[
Constructor(CSSNumericValue length),
RuntimeEnabled=CSSTypedOM,
Exposed=(Window,PaintWorklet),
Exposed=(Window,LayoutWorklet,PaintWorklet),
RaisesException=Constructor
] interface CSSPerspective : CSSTransformComponent {
[RaisesException=Setter] attribute CSSNumericValue length;
......
......@@ -8,7 +8,7 @@
[
Constructor(CSSNumericValue x, CSSNumericValue y),
RuntimeEnabled=CSSTypedOM,
Exposed=(Window,PaintWorklet),
Exposed=(Window,LayoutWorklet,PaintWorklet),
RaisesException=Constructor
] interface CSSPositionValue : CSSStyleValue {
[RaisesException=Setter] attribute CSSNumericValue x;
......
......@@ -11,7 +11,7 @@ enum CSSResourceState {
[
RuntimeEnabled=CSSTypedOM,
Exposed=(Window,PaintWorklet)
Exposed=(Window,LayoutWorklet,PaintWorklet)
] interface CSSResourceValue : CSSStyleValue {
readonly attribute CSSResourceState state;
};
......@@ -9,7 +9,7 @@
Constructor(CSSNumericValue angleValue),
Constructor(CSSNumberish x, CSSNumberish y, CSSNumberish z, CSSNumericValue angle),
RuntimeEnabled=CSSTypedOM,
Exposed=(Window,PaintWorklet),
Exposed=(Window,LayoutWorklet,PaintWorklet),
RaisesException=Constructor
] interface CSSRotate : CSSTransformComponent {
[RaisesException=Setter] attribute CSSNumericValue angle;
......
......@@ -8,7 +8,7 @@
[
Constructor(CSSNumberish x, CSSNumberish y, optional CSSNumberish z),
RuntimeEnabled=CSSTypedOM,
Exposed=(Window,PaintWorklet),
Exposed=(Window,LayoutWorklet,PaintWorklet),
RaisesException=Constructor
] interface CSSScale : CSSTransformComponent {
[RaisesException=Setter] attribute CSSNumberish x;
......
......@@ -8,7 +8,7 @@
[
Constructor(CSSNumericValue ax, CSSNumericValue ay),
RuntimeEnabled=CSSTypedOM,
Exposed=(Window,PaintWorklet),
Exposed=(Window,LayoutWorklet,PaintWorklet),
RaisesException=Constructor
] interface CSSSkew : CSSTransformComponent {
[RaisesException=Setter] attribute CSSNumericValue ax;
......
......@@ -12,4 +12,4 @@
RaisesException=Constructor]
interface CSSSkewX : CSSTransformComponent {
[RaisesException=Setter] attribute CSSNumericValue ax;
};
\ No newline at end of file
};
......@@ -7,7 +7,7 @@
// base CSSStyleValues.
// 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 {
stringifier;
// Putting Exposed=Window in the next line makes |parse| not exposed to PaintWorklet.
......
......@@ -8,7 +8,7 @@
// Spec: https://drafts.css-houdini.org/css-typed-om/#csstransformcomponent
[
RuntimeEnabled=CSSTypedOM,
Exposed=(Window,PaintWorklet)
Exposed=(Window,LayoutWorklet,PaintWorklet)
] interface CSSTransformComponent {
stringifier;
attribute boolean is2D;
......
......@@ -6,7 +6,7 @@
Constructor(sequence<CSSTransformComponent> transforms),
RaisesException=Constructor,
RuntimeEnabled=CSSTypedOM,
Exposed=(Window,PaintWorklet)
Exposed=(Window,LayoutWorklet,PaintWorklet)
] interface CSSTransformValue : CSSStyleValue {
// https://github.com/w3c/css-houdini-drafts/issues/358
readonly attribute unsigned long length;
......
......@@ -9,7 +9,7 @@
Constructor(CSSNumericValue x, CSSNumericValue y,
optional CSSNumericValue z),
RuntimeEnabled=CSSTypedOM,
Exposed=(Window,PaintWorklet),
Exposed=(Window,LayoutWorklet,PaintWorklet),
RaisesException=Constructor
] interface CSSTranslate : CSSTransformComponent {
[RaisesException=Setter] attribute CSSNumericValue x;
......
......@@ -8,7 +8,7 @@
Constructor(USVString url),
ConstructorCallWith=ScriptState,
RuntimeEnabled=CSSTypedOM,
Exposed=(Window,PaintWorklet),
Exposed=(Window,LayoutWorklet,PaintWorklet),
RaisesException=Constructor
] interface CSSURLImageValue : CSSImageValue {
readonly attribute USVString url;
......
......@@ -9,7 +9,7 @@
Constructor(double value, DOMString unit),
RaisesException=Constructor,
RuntimeEnabled=CSSTypedOM,
Exposed=(Window,PaintWorklet)
Exposed=(Window,LayoutWorklet,PaintWorklet)
] interface CSSUnitValue : CSSNumericValue {
[EnforceRange] attribute double value;
readonly attribute DOMString unit;
......
......@@ -8,11 +8,11 @@
[
Constructor(sequence<CSSUnparsedSegment> members),
RuntimeEnabled=CSSTypedOM,
Exposed=(Window,PaintWorklet)
Exposed=(Window,LayoutWorklet,PaintWorklet)
] interface CSSUnparsedValue : CSSStyleValue {
iterable<CSSUnparsedSegment>;
readonly attribute unsigned long length;
[RaisesException] getter CSSUnparsedSegment (unsigned long index);
};
typedef (DOMString or CSSVariableReferenceValue) CSSUnparsedSegment;
\ No newline at end of file
typedef (DOMString or CSSVariableReferenceValue) CSSUnparsedSegment;
......@@ -7,7 +7,7 @@
[
Constructor(DOMString variable, optional CSSUnparsedValue fallback),
RuntimeEnabled=CSSTypedOM,
Exposed=(Window,PaintWorklet),
Exposed=(Window,LayoutWorklet,PaintWorklet),
RaisesException=Constructor,
ImplementedAs=CSSStyleVariableReferenceValue
] interface CSSVariableReferenceValue {
......
......@@ -8,7 +8,7 @@ callback UpdateFunction = CSSStyleValue (CSSStyleValue oldValue);
[
RuntimeEnabled=CSSTypedOM,
Exposed=(Window,PaintWorklet)
Exposed=(Window)
] interface StylePropertyMap : StylePropertyMapReadOnly {
[RaisesException, CallWith=ExecutionContext] void append(DOMString property, (CSSStyleValue or DOMString)... values);
[RaisesException, ImplementedAs=remove] void delete(DOMString property);
......
......@@ -3,7 +3,7 @@
// found in the LICENSE file.
[
Exposed(Window CSSTypedOM,PaintWorklet CSSPaintAPI)
Exposed(Window CSSTypedOM,LayoutWorklet CSSTypedOM,PaintWorklet CSSPaintAPI)
] interface StylePropertyMapReadOnly {
[RaisesException] CSSStyleValue? get(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