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

Unified Diff: core/svg/SVGTextContentElement.idl

Issue 1660113002: Updated to Chrome 45 (2454) moved from SVN to git. Base URL: https://github.com/dart-lang/webcore.git@roll_45
Patch Set: Created 4 years, 11 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 | « core/svg/SVGTests.idl ('k') | core/svg/SVGTextElement.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
};
-
« no previous file with comments | « core/svg/SVGTests.idl ('k') | core/svg/SVGTextElement.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698