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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 virtual bool selfHasRelativeLengths() const; | 133 virtual bool selfHasRelativeLengths() const; |
134 | 134 |
135 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGTextPathElement) | 135 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGTextPathElement) |
136 DECLARE_ANIMATED_LENGTH(StartOffset, startOffset) | 136 DECLARE_ANIMATED_LENGTH(StartOffset, startOffset) |
137 DECLARE_ANIMATED_ENUMERATION(Method, method, SVGTextPathMethodType) | 137 DECLARE_ANIMATED_ENUMERATION(Method, method, SVGTextPathMethodType) |
138 DECLARE_ANIMATED_ENUMERATION(Spacing, spacing, SVGTextPathSpacingType) | 138 DECLARE_ANIMATED_ENUMERATION(Spacing, spacing, SVGTextPathSpacingType) |
139 DECLARE_ANIMATED_STRING(Href, href) | 139 DECLARE_ANIMATED_STRING(Href, href) |
140 END_DECLARE_ANIMATED_PROPERTIES | 140 END_DECLARE_ANIMATED_PROPERTIES |
141 }; | 141 }; |
142 | 142 |
143 inline SVGTextPathElement* toSVGTextPathElement(Node* node) | 143 DEFINE_NODE_TYPE_CASTS(SVGTextPathElement, hasTagName(SVGNames::textPathTag)); |
144 { | |
145 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(SVGNames::textPat
hTag)); | |
146 return static_cast<SVGTextPathElement*>(node); | |
147 } | |
148 | 144 |
149 } // namespace WebCore | 145 } // namespace WebCore |
150 | 146 |
151 #endif | 147 #endif |
OLD | NEW |