diff options
author | Till Schneidereit <till@tillschneidereit.net> | 2015-07-21 17:03:45 +0200 |
---|---|---|
committer | Till Schneidereit <till@tillschneidereit.net> | 2015-07-23 19:09:36 +0200 |
commit | b692187ca242fbbac7a49ab97c93b8b0f83165d7 (patch) | |
tree | 248cdc3b43f6929bf5a326f0cde22947eedd7f48 /components/script/dom/webidls/DOMPointReadOnly.webidl | |
parent | 3a5e4335d7ff993a859bc5876243423fe4936441 (diff) | |
download | servo-b692187ca242fbbac7a49ab97c93b8b0f83165d7.tar.gz servo-b692187ca242fbbac7a49ab97c93b8b0f83165d7.zip |
Implement DOMPoint and DOMPointReadOnly
Passes some but not all WPT tests. One failure is caused by an issue in codegen for the `DOMPointInit` dictionary, the others by outdated tests: Gecko implements an old version of the spec that overloaded the `DOMPoint` constructor to optionally take an object as the first argument, and made `DOMPointReadOnly` non-constructible.
Diffstat (limited to 'components/script/dom/webidls/DOMPointReadOnly.webidl')
-rw-r--r-- | components/script/dom/webidls/DOMPointReadOnly.webidl | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/components/script/dom/webidls/DOMPointReadOnly.webidl b/components/script/dom/webidls/DOMPointReadOnly.webidl new file mode 100644 index 00000000000..6bff491a58c --- /dev/null +++ b/components/script/dom/webidls/DOMPointReadOnly.webidl @@ -0,0 +1,29 @@ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * The origin of this IDL file is + * http://dev.w3.org/fxtf/geometry/ + * + * Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C + * liability, trademark and document use rules apply. + */ + +// http://dev.w3.org/fxtf/geometry/Overview.html#dompointreadonly +[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 { + readonly attribute unrestricted double x; + readonly attribute unrestricted double y; + readonly attribute unrestricted double z; + readonly attribute unrestricted double w; +}; + +dictionary DOMPointInit { + unrestricted double x = 0; + unrestricted double y = 0; + unrestricted double z = 0; + unrestricted double w = 1; +}; |