aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webidls/DOMRectReadOnly.webidl
diff options
context:
space:
mode:
authorKagami Sascha Rosylight <saschanaz@outlook.com>2019-07-24 17:11:44 +0900
committerKagami Sascha Rosylight <saschanaz@outlook.com>2019-07-24 22:01:55 +0900
commit16b4e3446bc466c87327fac3402736d3636a5f73 (patch)
treefd7b7c4087ec4001050b8d08f0e78dd56ffb6d4a /components/script/dom/webidls/DOMRectReadOnly.webidl
parent9a7e2663e898575b7bef2e68b7cf27bfb3814434 (diff)
downloadservo-16b4e3446bc466c87327fac3402736d3636a5f73.tar.gz
servo-16b4e3446bc466c87327fac3402736d3636a5f73.zip
Support default toJSON in WebIDL
Diffstat (limited to 'components/script/dom/webidls/DOMRectReadOnly.webidl')
-rw-r--r--components/script/dom/webidls/DOMRectReadOnly.webidl2
1 files changed, 2 insertions, 0 deletions
diff --git a/components/script/dom/webidls/DOMRectReadOnly.webidl b/components/script/dom/webidls/DOMRectReadOnly.webidl
index 9464561bef4..58a8c87cd1c 100644
--- a/components/script/dom/webidls/DOMRectReadOnly.webidl
+++ b/components/script/dom/webidls/DOMRectReadOnly.webidl
@@ -17,6 +17,8 @@ interface DOMRectReadOnly {
readonly attribute unrestricted double right;
readonly attribute unrestricted double bottom;
readonly attribute unrestricted double left;
+
+ [Default] object toJSON();
};
// https://drafts.fxtf.org/geometry/#dictdef-domrectinit