OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann <zimmermann@kde
.org> | 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann <zimmermann@kde
.org> |
3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006 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, |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 return SVGMarkerOrientAuto; | 88 return SVGMarkerOrientAuto; |
89 | 89 |
90 ExceptionCode ec = 0; | 90 ExceptionCode ec = 0; |
91 angle.setValueAsString(value, ec); | 91 angle.setValueAsString(value, ec); |
92 if (!ec) | 92 if (!ec) |
93 return SVGMarkerOrientAngle; | 93 return SVGMarkerOrientAngle; |
94 return SVGMarkerOrientUnknown; | 94 return SVGMarkerOrientUnknown; |
95 } | 95 } |
96 }; | 96 }; |
97 | 97 |
98 class SVGMarkerElement : public SVGStyledElement, | 98 class SVGMarkerElement FINAL : public SVGStyledElement, |
99 public SVGLangSpace, | 99 public SVGLangSpace, |
100 public SVGExternalResourcesRequired, | 100 public SVGExternalResourcesRequired, |
101 public SVGFitToViewBox { | 101 public SVGFitToViewBox { |
102 public: | 102 public: |
103 // Forward declare enumerations in the W3C naming scheme, for IDL generation
. | 103 // Forward declare enumerations in the W3C naming scheme, for IDL generation
. |
104 enum { | 104 enum { |
105 SVG_MARKERUNITS_UNKNOWN = SVGMarkerUnitsUnknown, | 105 SVG_MARKERUNITS_UNKNOWN = SVGMarkerUnitsUnknown, |
106 SVG_MARKERUNITS_USERSPACEONUSE = SVGMarkerUnitsUserSpaceOnUse, | 106 SVG_MARKERUNITS_USERSPACEONUSE = SVGMarkerUnitsUserSpaceOnUse, |
107 SVG_MARKERUNITS_STROKEWIDTH = SVGMarkerUnitsStrokeWidth | 107 SVG_MARKERUNITS_STROKEWIDTH = SVGMarkerUnitsStrokeWidth |
108 }; | 108 }; |
109 | 109 |
110 enum { | 110 enum { |
111 SVG_MARKER_ORIENT_UNKNOWN = SVGMarkerOrientUnknown, | 111 SVG_MARKER_ORIENT_UNKNOWN = SVGMarkerOrientUnknown, |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 inline SVGMarkerElement* toSVGMarkerElement(SVGElement* element) | 170 inline SVGMarkerElement* toSVGMarkerElement(SVGElement* element) |
171 { | 171 { |
172 ASSERT_WITH_SECURITY_IMPLICATION(!element || element->hasTagName(SVGNames::m
arkerTag)); | 172 ASSERT_WITH_SECURITY_IMPLICATION(!element || element->hasTagName(SVGNames::m
arkerTag)); |
173 return static_cast<SVGMarkerElement*>(element); | 173 return static_cast<SVGMarkerElement*>(element); |
174 } | 174 } |
175 | 175 |
176 } | 176 } |
177 | 177 |
178 #endif | 178 #endif |
179 #endif | 179 #endif |
OLD | NEW |