OLD | NEW |
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/SVGExternalResourcesRequired.h" | 27 #include "core/svg/SVGExternalResourcesRequired.h" |
28 #include "core/svg/SVGLangSpace.h" | |
29 #include "core/svg/SVGStyledElement.h" | 28 #include "core/svg/SVGStyledElement.h" |
30 #include "core/svg/SVGTests.h" | 29 #include "core/svg/SVGTests.h" |
31 | 30 |
32 namespace WebCore { | 31 namespace WebCore { |
33 | 32 |
34 enum SVGLengthAdjustType { | 33 enum SVGLengthAdjustType { |
35 SVGLengthAdjustUnknown, | 34 SVGLengthAdjustUnknown, |
36 SVGLengthAdjustSpacing, | 35 SVGLengthAdjustSpacing, |
37 SVGLengthAdjustSpacingAndGlyphs | 36 SVGLengthAdjustSpacingAndGlyphs |
38 }; | 37 }; |
(...skipping 22 matching lines...) Expand all Loading... |
61 if (value == "spacingAndGlyphs") | 60 if (value == "spacingAndGlyphs") |
62 return SVGLengthAdjustSpacingAndGlyphs; | 61 return SVGLengthAdjustSpacingAndGlyphs; |
63 if (value == "spacing") | 62 if (value == "spacing") |
64 return SVGLengthAdjustSpacing; | 63 return SVGLengthAdjustSpacing; |
65 return SVGLengthAdjustUnknown; | 64 return SVGLengthAdjustUnknown; |
66 } | 65 } |
67 }; | 66 }; |
68 | 67 |
69 class SVGTextContentElement : public SVGStyledElement, | 68 class SVGTextContentElement : public SVGStyledElement, |
70 public SVGTests, | 69 public SVGTests, |
71 public SVGLangSpace, | |
72 public SVGExternalResourcesRequired { | 70 public SVGExternalResourcesRequired { |
73 public: | 71 public: |
74 // Forward declare enumerations in the W3C naming scheme, for IDL generation
. | 72 // Forward declare enumerations in the W3C naming scheme, for IDL generation
. |
75 enum { | 73 enum { |
76 LENGTHADJUST_UNKNOWN = SVGLengthAdjustUnknown, | 74 LENGTHADJUST_UNKNOWN = SVGLengthAdjustUnknown, |
77 LENGTHADJUST_SPACING = SVGLengthAdjustSpacing, | 75 LENGTHADJUST_SPACING = SVGLengthAdjustSpacing, |
78 LENGTHADJUST_SPACINGANDGLYPHS = SVGLengthAdjustSpacingAndGlyphs | 76 LENGTHADJUST_SPACINGANDGLYPHS = SVGLengthAdjustSpacingAndGlyphs |
79 }; | 77 }; |
80 | 78 |
81 unsigned getNumberOfChars(); | 79 unsigned getNumberOfChars(); |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 | 129 |
132 inline SVGTextContentElement* toSVGTextContentElement(SVGElement* element) | 130 inline SVGTextContentElement* toSVGTextContentElement(SVGElement* element) |
133 { | 131 { |
134 ASSERT_WITH_SECURITY_IMPLICATION(!element || element->isTextContent()); | 132 ASSERT_WITH_SECURITY_IMPLICATION(!element || element->isTextContent()); |
135 return static_cast<SVGTextContentElement*>(element); | 133 return static_cast<SVGTextContentElement*>(element); |
136 } | 134 } |
137 | 135 |
138 } // namespace WebCore | 136 } // namespace WebCore |
139 | 137 |
140 #endif | 138 #endif |
OLD | NEW |