mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Placed worklets implementation behind a pref.
This commit is contained in:
parent
7f1278a329
commit
a3fe0b72d5
13 changed files with 12 additions and 11 deletions
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
// https://drafts.css-houdini.org/css-typed-om-1/#cssstylevalue
|
// https://drafts.css-houdini.org/css-typed-om-1/#cssstylevalue
|
||||||
// NOTE: should this be exposed to Window?
|
// NOTE: should this be exposed to Window?
|
||||||
[Exposed=(Worklet)]
|
[Pref="dom.worklet.enabled", Exposed=(Worklet)]
|
||||||
interface CSSStyleValue {
|
interface CSSStyleValue {
|
||||||
stringifier;
|
stringifier;
|
||||||
// static CSSStyleValue? parse(DOMString property, DOMString cssText);
|
// static CSSStyleValue? parse(DOMString property, DOMString cssText);
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
// https://drafts.css-houdini.org/css-paint-api/#paintrenderingcontext2d
|
// https://drafts.css-houdini.org/css-paint-api/#paintrenderingcontext2d
|
||||||
[Exposed=PaintWorklet]
|
[Pref="dom.worklet.enabled", Exposed=PaintWorklet]
|
||||||
interface PaintRenderingContext2D {
|
interface PaintRenderingContext2D {
|
||||||
};
|
};
|
||||||
PaintRenderingContext2D implements CanvasState;
|
PaintRenderingContext2D implements CanvasState;
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
// https://drafts.css-houdini.org/css-paint-api/#paintsize
|
// https://drafts.css-houdini.org/css-paint-api/#paintsize
|
||||||
[Exposed=PaintWorklet]
|
[Pref="dom.worklet.enabled", Exposed=PaintWorklet]
|
||||||
interface PaintSize {
|
interface PaintSize {
|
||||||
readonly attribute double width;
|
readonly attribute double width;
|
||||||
readonly attribute double height;
|
readonly attribute double height;
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
// https://drafts.css-houdini.org/css-paint-api/#paintworkletglobalscope
|
// https://drafts.css-houdini.org/css-paint-api/#paintworkletglobalscope
|
||||||
[Global=(Worklet,PaintWorklet), Exposed=PaintWorklet]
|
[Global=(Worklet,PaintWorklet), Pref="dom.worklet.enabled", Exposed=PaintWorklet]
|
||||||
interface PaintWorkletGlobalScope : WorkletGlobalScope {
|
interface PaintWorkletGlobalScope : WorkletGlobalScope {
|
||||||
[Throws] void registerPaint(DOMString name, VoidFunction paintCtor);
|
[Throws] void registerPaint(DOMString name, VoidFunction paintCtor);
|
||||||
};
|
};
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
// https://drafts.css-houdini.org/css-typed-om-1/#stylepropertymapreadonly
|
// https://drafts.css-houdini.org/css-typed-om-1/#stylepropertymapreadonly
|
||||||
// NOTE: should this be exposed to Window?
|
// NOTE: should this be exposed to Window?
|
||||||
[Exposed=(Worklet)]
|
[Pref="dom.worklet.enabled", Exposed=(Worklet)]
|
||||||
interface StylePropertyMapReadOnly {
|
interface StylePropertyMapReadOnly {
|
||||||
CSSStyleValue? get(DOMString property);
|
CSSStyleValue? get(DOMString property);
|
||||||
// sequence<CSSStyleValue> getAll(DOMString property);
|
// sequence<CSSStyleValue> getAll(DOMString property);
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
// This interface is entirely internal to Servo, and should not be accessible to
|
// This interface is entirely internal to Servo, and should not be accessible to
|
||||||
// web pages.
|
// web pages.
|
||||||
|
|
||||||
[Global=(Worklet,TestWorklet), Exposed=TestWorklet]
|
[Global=(Worklet,TestWorklet), Pref="dom.worklet.enabled", Exposed=TestWorklet]
|
||||||
interface TestWorkletGlobalScope : WorkletGlobalScope {
|
interface TestWorkletGlobalScope : WorkletGlobalScope {
|
||||||
void registerKeyValue(DOMString key, DOMString value);
|
void registerKeyValue(DOMString key, DOMString value);
|
||||||
};
|
};
|
||||||
|
|
|
@ -206,5 +206,5 @@ partial interface Window {
|
||||||
|
|
||||||
// https://drafts.css-houdini.org/css-paint-api-1/#paint-worklet
|
// https://drafts.css-houdini.org/css-paint-api-1/#paint-worklet
|
||||||
partial interface Window {
|
partial interface Window {
|
||||||
[SameObject] readonly attribute Worklet paintWorklet;
|
[SameObject, Pref="dom.worklet.enabled"] readonly attribute Worklet paintWorklet;
|
||||||
};
|
};
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
// https://drafts.css-houdini.org/worklets/#worklet
|
// https://drafts.css-houdini.org/worklets/#worklet
|
||||||
[Exposed=(Window)]
|
[Pref="dom.worklet.enabled", Exposed=(Window)]
|
||||||
interface Worklet {
|
interface Worklet {
|
||||||
[NewObject] Promise<void> addModule(USVString moduleURL, optional WorkletOptions options);
|
[NewObject] Promise<void> addModule(USVString moduleURL, optional WorkletOptions options);
|
||||||
};
|
};
|
||||||
|
|
|
@ -5,6 +5,6 @@
|
||||||
// https://drafts.css-houdini.org/worklets/#workletglobalscope
|
// https://drafts.css-houdini.org/worklets/#workletglobalscope
|
||||||
// TODO: The spec IDL doesn't make this a subclass of EventTarget
|
// TODO: The spec IDL doesn't make this a subclass of EventTarget
|
||||||
// https://github.com/whatwg/html/issues/2611
|
// https://github.com/whatwg/html/issues/2611
|
||||||
[Exposed=Worklet]
|
[Pref="dom.worklet.enabled", Exposed=Worklet]
|
||||||
interface WorkletGlobalScope: GlobalScope {
|
interface WorkletGlobalScope: GlobalScope {
|
||||||
};
|
};
|
||||||
|
|
|
@ -27241,7 +27241,7 @@
|
||||||
"testharness"
|
"testharness"
|
||||||
],
|
],
|
||||||
"mozilla/interfaces.html": [
|
"mozilla/interfaces.html": [
|
||||||
"ffdc606aaf989ef8bcdecef8cef8764bbb2ae1b2",
|
"c884fee8603f93099ffd0acc30f0ab0cbee5b5f8",
|
||||||
"testharness"
|
"testharness"
|
||||||
],
|
],
|
||||||
"mozilla/interfaces.js": [
|
"mozilla/interfaces.js": [
|
||||||
|
|
1
tests/wpt/mozilla/meta/mozilla/css-paint-api/__dir__.ini
Normal file
1
tests/wpt/mozilla/meta/mozilla/css-paint-api/__dir__.ini
Normal file
|
@ -0,0 +1 @@
|
||||||
|
prefs: [dom.worklet.enabled:true]
|
1
tests/wpt/mozilla/meta/mozilla/worklets/__dir__.ini
Normal file
1
tests/wpt/mozilla/meta/mozilla/worklets/__dir__.ini
Normal file
|
@ -0,0 +1 @@
|
||||||
|
prefs: [dom.worklet.enabled:true]
|
|
@ -201,7 +201,6 @@ test_interfaces([
|
||||||
"WebSocket",
|
"WebSocket",
|
||||||
"Window",
|
"Window",
|
||||||
"Worker",
|
"Worker",
|
||||||
"Worklet",
|
|
||||||
"XMLDocument",
|
"XMLDocument",
|
||||||
"XMLHttpRequest",
|
"XMLHttpRequest",
|
||||||
"XMLHttpRequestEventTarget",
|
"XMLHttpRequestEventTarget",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue