Index: Source/core/svg/SVGTextContentElement.idl |
diff --git a/Source/core/svg/SVGTextContentElement.idl b/Source/core/svg/SVGTextContentElement.idl |
index bfd15879ccbc54dcbc929cad59856c57ae012e33..c2a284fc35ec4c18c456c821dcf443fa49dd907f 100644 |
--- a/Source/core/svg/SVGTextContentElement.idl |
+++ b/Source/core/svg/SVGTextContentElement.idl |
@@ -23,6 +23,8 @@ |
* 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 { |
@@ -36,11 +38,12 @@ |
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); |
}; |