summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJob Bautista <jobbautista9@aol.com>2023-05-12 15:37:58 +0800
committerJob Bautista <jobbautista9@aol.com>2023-05-12 16:26:06 +0800
commitfdfe7a8245eb33db252f2a9a3474ac931f15a7d8 (patch)
tree073ab0bba907fc47df151fc6a3cc160eecf03661
parent709c34a4484a45c19c5a7c52a7a0052d5fca9678 (diff)
downloaduxp-fdfe7a8245eb33db252f2a9a3474ac931f15a7d8.tar.gz
Issue #2241 - Part 4&5 Follow-up: Fix WebIDL errors
Remove [Pref] attribute from Geometry interfaces as they're now exposed to web workers too via Part 5. Remove nonexistent toJSON objects erroneously added in Part 4.1.
-rw-r--r--dom/webidl/DOMMatrix.webidl7
-rw-r--r--dom/webidl/DOMPoint.webidl8
-rw-r--r--dom/webidl/DOMQuad.webidl3
-rw-r--r--dom/webidl/DOMRect.webidl2
4 files changed, 5 insertions, 15 deletions
diff --git a/dom/webidl/DOMMatrix.webidl b/dom/webidl/DOMMatrix.webidl
index e54d16c21b..68c70507b7 100644
--- a/dom/webidl/DOMMatrix.webidl
+++ b/dom/webidl/DOMMatrix.webidl
@@ -10,8 +10,7 @@
* liability, trademark and document use rules apply.
*/
-[Pref="layout.css.DOMMatrix.enabled",
- Constructor(optional (DOMString or sequence<unrestricted double>) init),
+[Constructor(optional (DOMString or sequence<unrestricted double>) init),
Exposed=(Window,Worker)]
interface DOMMatrixReadOnly {
// These attributes are simple aliases for certain elements of the 4x4 matrix
@@ -79,11 +78,9 @@ interface DOMMatrixReadOnly {
[Throws] Float32Array toFloat32Array();
[Throws] Float64Array toFloat64Array();
[Exposed=Window] stringifier;
- [Default] object toJSON();
};
-[Pref="layout.css.DOMMatrix.enabled",
- Constructor,
+[Constructor,
Constructor(DOMString transformList),
Constructor(DOMMatrixReadOnly other),
Constructor(Float32Array array32),
diff --git a/dom/webidl/DOMPoint.webidl b/dom/webidl/DOMPoint.webidl
index 1603253a69..313a51bc53 100644
--- a/dom/webidl/DOMPoint.webidl
+++ b/dom/webidl/DOMPoint.webidl
@@ -10,8 +10,7 @@
* liability, trademark and document use rules apply.
*/
-[Pref="layout.css.DOMPoint.enabled",
- Constructor(optional unrestricted double x = 0, optional unrestricted double y = 0,
+[Constructor(optional unrestricted double x = 0, optional unrestricted double y = 0,
optional unrestricted double z = 0, optional unrestricted double w = 1),
Exposed=(Window,Worker)]
interface DOMPointReadOnly {
@@ -21,12 +20,9 @@ interface DOMPointReadOnly {
readonly attribute unrestricted double y;
readonly attribute unrestricted double z;
readonly attribute unrestricted double w;
-
- [Default] object toJSON();
};
-[Pref="layout.css.DOMPoint.enabled",
- Constructor(optional unrestricted double x = 0, optional unrestricted double y = 0,
+[Constructor(optional unrestricted double x = 0, optional unrestricted double y = 0,
optional unrestricted double z = 0, optional unrestricted double w = 1),
Exposed=(Window,Worker)]
interface DOMPoint : DOMPointReadOnly {
diff --git a/dom/webidl/DOMQuad.webidl b/dom/webidl/DOMQuad.webidl
index ac89ac4450..5b130d271f 100644
--- a/dom/webidl/DOMQuad.webidl
+++ b/dom/webidl/DOMQuad.webidl
@@ -10,8 +10,7 @@
* liability, trademark and document use rules apply.
*/
-[Pref="layout.css.DOMQuad.enabled",
- Constructor(optional DOMPointInit p1, optional DOMPointInit p2,
+[Constructor(optional DOMPointInit p1, optional DOMPointInit p2,
optional DOMPointInit p3, optional DOMPointInit p4),
Constructor(DOMRectReadOnly rect),
Exposed=(Window,Worker)]
diff --git a/dom/webidl/DOMRect.webidl b/dom/webidl/DOMRect.webidl
index 92c0cadc67..c3bedc7ef5 100644
--- a/dom/webidl/DOMRect.webidl
+++ b/dom/webidl/DOMRect.webidl
@@ -32,8 +32,6 @@ interface DOMRectReadOnly {
readonly attribute unrestricted double right;
readonly attribute unrestricted double bottom;
readonly attribute unrestricted double left;
-
- [Default] object toJSON();
};
dictionary DOMRectInit {