1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
6 * The origin of this IDL file is
7 * http://dev.w3.org/fxtf/geometry/
9 * Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
10 * liability, trademark and document use rules apply.
13 [Constructor(optional unrestricted double x = 0, optional unrestricted double y = 0,
14 optional unrestricted double width = 0, optional unrestricted double height = 0)]
15 interface DOMRect : DOMRectReadOnly {
16 inherit attribute unrestricted double x;
17 inherit attribute unrestricted double y;
18 inherit attribute unrestricted double width;
19 inherit attribute unrestricted double height;
22 [ProbablyShortLivingWrapper,
23 Constructor(optional unrestricted double x = 0, optional unrestricted double y = 0,
24 optional unrestricted double width = 0, optional unrestricted double height = 0)]
25 interface DOMRectReadOnly {
26 readonly attribute unrestricted double x;
27 readonly attribute unrestricted double y;
28 readonly attribute unrestricted double width;
29 readonly attribute unrestricted double height;
30 readonly attribute unrestricted double top;
31 readonly attribute unrestricted double right;
32 readonly attribute unrestricted double bottom;
33 readonly attribute unrestricted double left;
35 [Default] object toJSON();
38 dictionary DOMRectInit {
39 unrestricted double x = 0;
40 unrestricted double y = 0;
41 unrestricted double width = 0;
42 unrestricted double height = 0;