Index: core/svg/SVGLength.idl |
diff --git a/core/svg/SVGLength.idl b/core/svg/SVGLength.idl |
index 48e5a1f4a7823b19f62a66840e5e01023a67b409..52e2daafd47f846a72010b751e74a3cef7af6d58 100644 |
--- a/core/svg/SVGLength.idl |
+++ b/core/svg/SVGLength.idl |
@@ -20,10 +20,16 @@ |
* Boston, MA 02110-1301, USA. |
*/ |
+// http://www.w3.org/TR/SVG2/types.html#InterfaceSVGLength |
+ |
+// TODO(philipj): SVGLength should have constructors. crbug.com/366541 |
[ |
ImplementedAs=SVGLengthTearOff, |
SetWrapperReferenceTo(SVGElement contextElement), |
TypeChecking=Interface, |
+ MeasureAs=SVG1DOM, |
+ RuntimeEnabled=SVG1DOM, |
+ WillBeGarbageCollected, |
] interface SVGLength { |
// Length Unit Types |
const unsigned short SVG_LENGTHTYPE_UNKNOWN = 0; |
@@ -40,12 +46,10 @@ |
readonly attribute unsigned short unitType; |
[RaisesException] attribute float value; |
- |
[RaisesException=Setter] attribute float valueInSpecifiedUnits; |
+ // TODO(philipj): valueAsString should not have [TreatNullAs=NullString]. |
[TreatNullAs=NullString, RaisesException=Setter] attribute DOMString valueAsString; |
[RaisesException] void newValueSpecifiedUnits(unsigned short unitType, float valueInSpecifiedUnits); |
- |
[RaisesException] void convertToSpecifiedUnits(unsigned short unitType); |
}; |
- |