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

Side by Side Diff: Source/core/svg/SVGTextContentElement.h

Issue 132233016: [SVG] SVGAnimatedPointList migration to new SVG property impl. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: set NeedsRebaseline Created 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/svg/SVGSVGElement.idl ('k') | Source/core/svg/SVGTextContentElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2005, 2008 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2008 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2006, 2008 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006, 2008 Rob Buis <buis@kde.org>
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details. 13 * Library General Public License for more details.
14 * 14 *
15 * You should have received a copy of the GNU Library General Public License 15 * You should have received a copy of the GNU Library General Public License
16 * along with this library; see the file COPYING.LIB. If not, write to 16 * along with this library; see the file COPYING.LIB. If not, write to
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA. 18 * Boston, MA 02110-1301, USA.
19 */ 19 */
20 20
21 #ifndef SVGTextContentElement_h 21 #ifndef SVGTextContentElement_h
22 #define SVGTextContentElement_h 22 #define SVGTextContentElement_h
23 23
24 #include "core/svg/SVGAnimatedBoolean.h" 24 #include "core/svg/SVGAnimatedBoolean.h"
25 #include "core/svg/SVGAnimatedEnumeration.h" 25 #include "core/svg/SVGAnimatedEnumeration.h"
26 #include "core/svg/SVGAnimatedLength.h" 26 #include "core/svg/SVGAnimatedLength.h"
27 #include "core/svg/SVGGraphicsElement.h" 27 #include "core/svg/SVGGraphicsElement.h"
28 #include "core/svg/SVGPointTearOff.h"
28 29
29 namespace WebCore { 30 namespace WebCore {
30 31
31 class ExceptionState; 32 class ExceptionState;
32 33
33 enum SVGLengthAdjustType { 34 enum SVGLengthAdjustType {
34 SVGLengthAdjustUnknown, 35 SVGLengthAdjustUnknown,
35 SVGLengthAdjustSpacing, 36 SVGLengthAdjustSpacing,
36 SVGLengthAdjustSpacingAndGlyphs 37 SVGLengthAdjustSpacingAndGlyphs
37 }; 38 };
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 // Forward declare enumerations in the W3C naming scheme, for IDL generation . 73 // Forward declare enumerations in the W3C naming scheme, for IDL generation .
73 enum { 74 enum {
74 LENGTHADJUST_UNKNOWN = SVGLengthAdjustUnknown, 75 LENGTHADJUST_UNKNOWN = SVGLengthAdjustUnknown,
75 LENGTHADJUST_SPACING = SVGLengthAdjustSpacing, 76 LENGTHADJUST_SPACING = SVGLengthAdjustSpacing,
76 LENGTHADJUST_SPACINGANDGLYPHS = SVGLengthAdjustSpacingAndGlyphs 77 LENGTHADJUST_SPACINGANDGLYPHS = SVGLengthAdjustSpacingAndGlyphs
77 }; 78 };
78 79
79 unsigned getNumberOfChars(); 80 unsigned getNumberOfChars();
80 float getComputedTextLength(); 81 float getComputedTextLength();
81 float getSubStringLength(unsigned charnum, unsigned nchars, ExceptionState&) ; 82 float getSubStringLength(unsigned charnum, unsigned nchars, ExceptionState&) ;
82 SVGPoint getStartPositionOfChar(unsigned charnum, ExceptionState&); 83 PassRefPtr<SVGPointTearOff> getStartPositionOfChar(unsigned charnum, Excepti onState&);
83 SVGPoint getEndPositionOfChar(unsigned charnum, ExceptionState&); 84 PassRefPtr<SVGPointTearOff> getEndPositionOfChar(unsigned charnum, Exception State&);
84 PassRefPtr<SVGRectTearOff> getExtentOfChar(unsigned charnum, ExceptionState& ); 85 PassRefPtr<SVGRectTearOff> getExtentOfChar(unsigned charnum, ExceptionState& );
85 float getRotationOfChar(unsigned charnum, ExceptionState&); 86 float getRotationOfChar(unsigned charnum, ExceptionState&);
86 int getCharNumAtPosition(const SVGPoint&); 87 int getCharNumAtPosition(PassRefPtr<SVGPointTearOff>, ExceptionState&);
87 void selectSubString(unsigned charnum, unsigned nchars, ExceptionState&); 88 void selectSubString(unsigned charnum, unsigned nchars, ExceptionState&);
88 89
89 static SVGTextContentElement* elementFromRenderer(RenderObject*); 90 static SVGTextContentElement* elementFromRenderer(RenderObject*);
90 91
91 SVGAnimatedLength* textLength() { return m_textLength.get(); } 92 SVGAnimatedLength* textLength() { return m_textLength.get(); }
92 bool textLengthIsSpecifiedByUser() { return m_textLengthIsSpecifiedByUser; } 93 bool textLengthIsSpecifiedByUser() { return m_textLengthIsSpecifiedByUser; }
93 94
94 protected: 95 protected:
95 SVGTextContentElement(const QualifiedName&, Document&); 96 SVGTextContentElement(const QualifiedName&, Document&);
96 97
(...skipping 18 matching lines...) Expand all
115 inline bool isSVGTextContentElement(const Node& node) 116 inline bool isSVGTextContentElement(const Node& node)
116 { 117 {
117 return node.isSVGElement() && toSVGElement(node).isTextContent(); 118 return node.isSVGElement() && toSVGElement(node).isTextContent();
118 } 119 }
119 120
120 DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(SVGTextContentElement); 121 DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(SVGTextContentElement);
121 122
122 } // namespace WebCore 123 } // namespace WebCore
123 124
124 #endif 125 #endif
OLDNEW
« no previous file with comments | « Source/core/svg/SVGSVGElement.idl ('k') | Source/core/svg/SVGTextContentElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698