OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> |
3 * | 3 * |
4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
8 * | 8 * |
9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 // Forward declare enumerations in the W3C naming scheme, for IDL generation
. | 102 // Forward declare enumerations in the W3C naming scheme, for IDL generation
. |
103 enum { | 103 enum { |
104 TEXTPATH_METHODTYPE_UNKNOWN = SVGTextPathMethodUnknown, | 104 TEXTPATH_METHODTYPE_UNKNOWN = SVGTextPathMethodUnknown, |
105 TEXTPATH_METHODTYPE_ALIGN = SVGTextPathMethodAlign, | 105 TEXTPATH_METHODTYPE_ALIGN = SVGTextPathMethodAlign, |
106 TEXTPATH_METHODTYPE_STRETCH = SVGTextPathMethodStretch, | 106 TEXTPATH_METHODTYPE_STRETCH = SVGTextPathMethodStretch, |
107 TEXTPATH_SPACINGTYPE_UNKNOWN = SVGTextPathSpacingUnknown, | 107 TEXTPATH_SPACINGTYPE_UNKNOWN = SVGTextPathSpacingUnknown, |
108 TEXTPATH_SPACINGTYPE_AUTO = SVGTextPathSpacingAuto, | 108 TEXTPATH_SPACINGTYPE_AUTO = SVGTextPathSpacingAuto, |
109 TEXTPATH_SPACINGTYPE_EXACT = SVGTextPathSpacingExact | 109 TEXTPATH_SPACINGTYPE_EXACT = SVGTextPathSpacingExact |
110 }; | 110 }; |
111 | 111 |
112 static PassRefPtr<SVGTextPathElement> create(const QualifiedName&, Document*
); | 112 static PassRefPtr<SVGTextPathElement> create(const QualifiedName&, Document&
); |
113 | 113 |
114 private: | 114 private: |
115 SVGTextPathElement(const QualifiedName&, Document*); | 115 SVGTextPathElement(const QualifiedName&, Document&); |
116 | 116 |
117 virtual ~SVGTextPathElement(); | 117 virtual ~SVGTextPathElement(); |
118 | 118 |
119 void clearResourceReferences(); | 119 void clearResourceReferences(); |
120 | 120 |
121 virtual void buildPendingResource(); | 121 virtual void buildPendingResource(); |
122 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; | 122 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; |
123 virtual void removedFrom(ContainerNode*) OVERRIDE; | 123 virtual void removedFrom(ContainerNode*) OVERRIDE; |
124 | 124 |
125 bool isSupportedAttribute(const QualifiedName&); | 125 bool isSupportedAttribute(const QualifiedName&); |
(...skipping 16 matching lines...) Expand all Loading... |
142 | 142 |
143 inline SVGTextPathElement* toSVGTextPathElement(Node* node) | 143 inline SVGTextPathElement* toSVGTextPathElement(Node* node) |
144 { | 144 { |
145 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(SVGNames::textPat
hTag)); | 145 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(SVGNames::textPat
hTag)); |
146 return static_cast<SVGTextPathElement*>(node); | 146 return static_cast<SVGTextPathElement*>(node); |
147 } | 147 } |
148 | 148 |
149 } // namespace WebCore | 149 } // namespace WebCore |
150 | 150 |
151 #endif | 151 #endif |
OLD | NEW |