| 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 |
| 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 12 * Library General Public License for more details. | 12 * Library General Public License for more details. |
| 13 * | 13 * |
| 14 * You should have received a copy of the GNU Library General Public License | 14 * You should have received a copy of the GNU Library General Public License |
| 15 * along with this library; see the file COPYING.LIB. If not, write to | 15 * along with this library; see the file COPYING.LIB. If not, write to |
| 16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 17 * Boston, MA 02110-1301, USA. | 17 * Boston, MA 02110-1301, USA. |
| 18 */ | 18 */ |
| 19 | 19 |
| 20 #ifndef SVGTextPathElement_h | 20 #ifndef SVGTextPathElement_h |
| 21 #define SVGTextPathElement_h | 21 #define SVGTextPathElement_h |
| 22 | 22 |
| 23 #include "SVGNames.h" | |
| 24 #include "core/svg/SVGTextContentElement.h" | 23 #include "core/svg/SVGTextContentElement.h" |
| 25 #include "core/svg/SVGURIReference.h" | 24 #include "core/svg/SVGURIReference.h" |
| 26 | 25 |
| 27 namespace WebCore { | 26 namespace WebCore { |
| 28 | 27 |
| 29 enum SVGTextPathMethodType { | 28 enum SVGTextPathMethodType { |
| 30 SVGTextPathMethodUnknown = 0, | 29 SVGTextPathMethodUnknown = 0, |
| 31 SVGTextPathMethodAlign, | 30 SVGTextPathMethodAlign, |
| 32 SVGTextPathMethodStretch | 31 SVGTextPathMethodStretch |
| 33 }; | 32 }; |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 virtual bool selfHasRelativeLengths() const; | 132 virtual bool selfHasRelativeLengths() const; |
| 134 | 133 |
| 135 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGTextPathElement) | 134 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGTextPathElement) |
| 136 DECLARE_ANIMATED_LENGTH(StartOffset, startOffset) | 135 DECLARE_ANIMATED_LENGTH(StartOffset, startOffset) |
| 137 DECLARE_ANIMATED_ENUMERATION(Method, method, SVGTextPathMethodType) | 136 DECLARE_ANIMATED_ENUMERATION(Method, method, SVGTextPathMethodType) |
| 138 DECLARE_ANIMATED_ENUMERATION(Spacing, spacing, SVGTextPathSpacingType) | 137 DECLARE_ANIMATED_ENUMERATION(Spacing, spacing, SVGTextPathSpacingType) |
| 139 DECLARE_ANIMATED_STRING(Href, href) | 138 DECLARE_ANIMATED_STRING(Href, href) |
| 140 END_DECLARE_ANIMATED_PROPERTIES | 139 END_DECLARE_ANIMATED_PROPERTIES |
| 141 }; | 140 }; |
| 142 | 141 |
| 143 inline SVGTextPathElement* toSVGTextPathElement(Node* node) | |
| 144 { | |
| 145 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(SVGNames::textPat
hTag)); | |
| 146 return static_cast<SVGTextPathElement*>(node); | |
| 147 } | |
| 148 | |
| 149 } // namespace WebCore | 142 } // namespace WebCore |
| 150 | 143 |
| 151 #endif | 144 #endif |
| OLD | NEW |