Use #pragma once in WebCore
[WebKit-https.git] / Source / WebCore / svg / SVGAngle.idl
index a9d0160..25b6345 100644 (file)
  * Boston, MA 02110-1301, USA.
  */
 
-module svg {
+[
+    ConstantsScope=SVGAngleValue
+] interface SVGAngle { 
+    // Angle Unit Types
+    const unsigned short SVG_ANGLETYPE_UNKNOWN = 0;
+    const unsigned short SVG_ANGLETYPE_UNSPECIFIED = 1;
+    const unsigned short SVG_ANGLETYPE_DEG = 2;
+    const unsigned short SVG_ANGLETYPE_RAD = 3;
+    const unsigned short SVG_ANGLETYPE_GRAD = 4;
 
-    interface [
-        Conditional=SVG
-    ] SVGAngle { 
-        // Angle Unit Types
-        const unsigned short SVG_ANGLETYPE_UNKNOWN = 0;
-        const unsigned short SVG_ANGLETYPE_UNSPECIFIED = 1;
-        const unsigned short SVG_ANGLETYPE_DEG = 2;
-        const unsigned short SVG_ANGLETYPE_RAD = 3;
-        const unsigned short SVG_ANGLETYPE_GRAD = 4;
+    readonly attribute unsigned short unitType;
+    [SetterMayThrowException, ImplementedAs=valueForBindings] attribute unrestricted float value;
+    [SetterMayThrowException] attribute unrestricted float valueInSpecifiedUnits;
 
-        readonly attribute unsigned short unitType;
-        attribute [StrictTypeChecking] float value;
-        attribute [StrictTypeChecking] float valueInSpecifiedUnits;
+    [SetterMayThrowException] attribute DOMString valueAsString;
 
-        attribute [ConvertNullToNullString] DOMString valueAsString
-            setter raises(DOMException);
-
-        [StrictTypeChecking] void newValueSpecifiedUnits(in unsigned short unitType, in float valueInSpecifiedUnits)
-            raises(DOMException);
-
-        [StrictTypeChecking] void convertToSpecifiedUnits(in unsigned short unitType)
-            raises(DOMException);
-    };
-
-}
+    [MayThrowException] void newValueSpecifiedUnits(unsigned short unitType, unrestricted float valueInSpecifiedUnits);
+    [MayThrowException] void convertToSpecifiedUnits(unsigned short unitType);
+};