Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
michael@0 | 2 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 3 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 4 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 5 | |
michael@0 | 6 | #include "domstubs.idl" |
michael@0 | 7 | |
michael@0 | 8 | [scriptable, uuid(2596325c-aed0-487e-96a1-0a6d589b9c6b)] |
michael@0 | 9 | interface nsIDOMSVGLength : nsISupports |
michael@0 | 10 | { |
michael@0 | 11 | // Length Unit Types |
michael@0 | 12 | const unsigned short SVG_LENGTHTYPE_UNKNOWN = 0; |
michael@0 | 13 | const unsigned short SVG_LENGTHTYPE_NUMBER = 1; |
michael@0 | 14 | const unsigned short SVG_LENGTHTYPE_PERCENTAGE = 2; |
michael@0 | 15 | const unsigned short SVG_LENGTHTYPE_EMS = 3; |
michael@0 | 16 | const unsigned short SVG_LENGTHTYPE_EXS = 4; |
michael@0 | 17 | const unsigned short SVG_LENGTHTYPE_PX = 5; |
michael@0 | 18 | const unsigned short SVG_LENGTHTYPE_CM = 6; |
michael@0 | 19 | const unsigned short SVG_LENGTHTYPE_MM = 7; |
michael@0 | 20 | const unsigned short SVG_LENGTHTYPE_IN = 8; |
michael@0 | 21 | const unsigned short SVG_LENGTHTYPE_PT = 9; |
michael@0 | 22 | const unsigned short SVG_LENGTHTYPE_PC = 10; |
michael@0 | 23 | |
michael@0 | 24 | readonly attribute unsigned short unitType; |
michael@0 | 25 | attribute float value; |
michael@0 | 26 | // raises DOMException on setting |
michael@0 | 27 | attribute float valueInSpecifiedUnits; |
michael@0 | 28 | // raises DOMException on setting |
michael@0 | 29 | attribute DOMString valueAsString; |
michael@0 | 30 | // raises DOMException on setting |
michael@0 | 31 | |
michael@0 | 32 | void newValueSpecifiedUnits(in unsigned short unitType, in float valueInSpecifiedUnits); |
michael@0 | 33 | void convertToSpecifiedUnits(in unsigned short unitType); |
michael@0 | 34 | }; |
michael@0 | 35 | |
michael@0 | 36 | |
michael@0 | 37 | |
michael@0 | 38 |