Index: core/svg/SVGTextContentElement.idl |
diff --git a/core/svg/SVGTextContentElement.idl b/core/svg/SVGTextContentElement.idl |
index 9d1f4f4e78b504393830189a8523c32a46cd4d9b..c2a284fc35ec4c18c456c821dcf443fa49dd907f 100644 |
--- a/core/svg/SVGTextContentElement.idl |
+++ b/core/svg/SVGTextContentElement.idl |
@@ -23,25 +23,27 @@ |
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
+// http://www.w3.org/TR/SVG2/text.html#InterfaceSVGTextContentElement |
+ |
[ |
TypeChecking=Interface, |
] interface SVGTextContentElement : SVGGraphicsElement { |
// lengthAdjust Types |
- const unsigned short LENGTHADJUST_UNKNOWN = 0; |
- const unsigned short LENGTHADJUST_SPACING = 1; |
- const unsigned short LENGTHADJUST_SPACINGANDGLYPHS = 2; |
+ [RuntimeEnabled=SVG1DOM, MeasureAs=SVG1DOM] const unsigned short LENGTHADJUST_UNKNOWN = 0; |
+ [RuntimeEnabled=SVG1DOM, MeasureAs=SVG1DOM] const unsigned short LENGTHADJUST_SPACING = 1; |
+ [RuntimeEnabled=SVG1DOM, MeasureAs=SVG1DOM] const unsigned short LENGTHADJUST_SPACINGANDGLYPHS = 2; |
- readonly attribute SVGAnimatedLength textLength; |
- readonly attribute SVGAnimatedEnumeration lengthAdjust; |
+ [RuntimeEnabled=SVG1DOM, MeasureAs=SVG1DOM] readonly attribute SVGAnimatedLength textLength; |
+ [RuntimeEnabled=SVG1DOM, MeasureAs=SVG1DOM] readonly attribute SVGAnimatedEnumeration lengthAdjust; |
long getNumberOfChars(); |
float getComputedTextLength(); |
- [RaisesException] float getSubStringLength(unsigned long offset, unsigned long length); |
- [RaisesException] SVGPoint getStartPositionOfChar(unsigned long offset); |
- [RaisesException] SVGPoint getEndPositionOfChar(unsigned long offset); |
- [RaisesException] SVGRect getExtentOfChar(unsigned long offset); |
- [RaisesException] float getRotationOfChar(unsigned long offset); |
+ [RaisesException] float getSubStringLength(unsigned long charnum, unsigned long nchars); |
+ // TODO(philipj): SVGPoint/SVGRect should be DOMPoint/DOMRect. |
+ [RaisesException] SVGPoint getStartPositionOfChar(unsigned long charnum); |
+ [RaisesException] SVGPoint getEndPositionOfChar(unsigned long charnum); |
+ [RaisesException] SVGRect getExtentOfChar(unsigned long charnum); |
+ [RaisesException] float getRotationOfChar(unsigned long charnum); |
[RaisesException] long getCharNumAtPosition(SVGPoint point); |
- [RaisesException] void selectSubString(unsigned long offset, unsigned long length); |
+ [RaisesException] void selectSubString(unsigned long charnum, unsigned long nchars); |
}; |
- |