|
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/. |
|
5 * |
|
6 * The origin of this IDL file is |
|
7 * http://dev.w3.org/fxtf/geometry/ |
|
8 * |
|
9 * Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C |
|
10 * liability, trademark and document use rules apply. |
|
11 */ |
|
12 |
|
13 [Constructor, |
|
14 Constructor(unrestricted double x, unrestricted double y, |
|
15 unrestricted double width, unrestricted double height)] |
|
16 interface DOMRect : DOMRectReadOnly { |
|
17 inherit attribute unrestricted double x; |
|
18 inherit attribute unrestricted double y; |
|
19 inherit attribute unrestricted double width; |
|
20 inherit attribute unrestricted double height; |
|
21 }; |
|
22 |
|
23 interface DOMRectReadOnly { |
|
24 readonly attribute unrestricted double x; |
|
25 readonly attribute unrestricted double y; |
|
26 readonly attribute unrestricted double width; |
|
27 readonly attribute unrestricted double height; |
|
28 readonly attribute unrestricted double top; |
|
29 readonly attribute unrestricted double right; |
|
30 readonly attribute unrestricted double bottom; |
|
31 readonly attribute unrestricted double left; |
|
32 }; |