Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1255)

Unified Diff: Source/core/svg/SVGTextContentElement.idl

Issue 1153763008: Sync SVG interfaces with the specs (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address feedback Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/svg/SVGTests.idl ('k') | Source/core/svg/SVGTextElement.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
};
« no previous file with comments | « Source/core/svg/SVGTests.idl ('k') | Source/core/svg/SVGTextElement.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698