Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(161)

Side by Side Diff: Source/core/svg/SVGMarkerElement.h

Issue 21042009: [SVG2] Merge SVGStyledElement into SVGElement (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/svg/SVGLocatable.cpp ('k') | Source/core/svg/SVGMarkerElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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,
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 SVGMarkerElement_h 21 #ifndef SVGMarkerElement_h
22 #define SVGMarkerElement_h 22 #define SVGMarkerElement_h
23 23
24 #include "core/svg/SVGAnimatedAngle.h" 24 #include "core/svg/SVGAnimatedAngle.h"
25 #include "core/svg/SVGAnimatedBoolean.h" 25 #include "core/svg/SVGAnimatedBoolean.h"
26 #include "core/svg/SVGAnimatedEnumeration.h" 26 #include "core/svg/SVGAnimatedEnumeration.h"
27 #include "core/svg/SVGAnimatedLength.h" 27 #include "core/svg/SVGAnimatedLength.h"
28 #include "core/svg/SVGAnimatedPreserveAspectRatio.h" 28 #include "core/svg/SVGAnimatedPreserveAspectRatio.h"
29 #include "core/svg/SVGAnimatedRect.h" 29 #include "core/svg/SVGAnimatedRect.h"
30 #include "core/svg/SVGElement.h"
30 #include "core/svg/SVGExternalResourcesRequired.h" 31 #include "core/svg/SVGExternalResourcesRequired.h"
31 #include "core/svg/SVGFitToViewBox.h" 32 #include "core/svg/SVGFitToViewBox.h"
32 #include "core/svg/SVGStyledElement.h"
33 33
34 namespace WebCore { 34 namespace WebCore {
35 35
36 enum SVGMarkerUnitsType { 36 enum SVGMarkerUnitsType {
37 SVGMarkerUnitsUnknown = 0, 37 SVGMarkerUnitsUnknown = 0,
38 SVGMarkerUnitsUserSpaceOnUse, 38 SVGMarkerUnitsUserSpaceOnUse,
39 SVGMarkerUnitsStrokeWidth 39 SVGMarkerUnitsStrokeWidth
40 }; 40 };
41 41
42 enum SVGMarkerOrientType { 42 enum SVGMarkerOrientType {
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 return SVGMarkerOrientAuto; 86 return SVGMarkerOrientAuto;
87 87
88 ExceptionCode ec = 0; 88 ExceptionCode ec = 0;
89 angle.setValueAsString(value, ec); 89 angle.setValueAsString(value, ec);
90 if (!ec) 90 if (!ec)
91 return SVGMarkerOrientAngle; 91 return SVGMarkerOrientAngle;
92 return SVGMarkerOrientUnknown; 92 return SVGMarkerOrientUnknown;
93 } 93 }
94 }; 94 };
95 95
96 class SVGMarkerElement FINAL : public SVGStyledElement, 96 class SVGMarkerElement FINAL : public SVGElement,
97 public SVGExternalResourcesRequired, 97 public SVGExternalResourcesRequired,
98 public SVGFitToViewBox { 98 public SVGFitToViewBox {
99 public: 99 public:
100 // Forward declare enumerations in the W3C naming scheme, for IDL generation . 100 // Forward declare enumerations in the W3C naming scheme, for IDL generation .
101 enum { 101 enum {
102 SVG_MARKERUNITS_UNKNOWN = SVGMarkerUnitsUnknown, 102 SVG_MARKERUNITS_UNKNOWN = SVGMarkerUnitsUnknown,
103 SVG_MARKERUNITS_USERSPACEONUSE = SVGMarkerUnitsUserSpaceOnUse, 103 SVG_MARKERUNITS_USERSPACEONUSE = SVGMarkerUnitsUserSpaceOnUse,
104 SVG_MARKERUNITS_STROKEWIDTH = SVGMarkerUnitsStrokeWidth 104 SVG_MARKERUNITS_STROKEWIDTH = SVGMarkerUnitsStrokeWidth
105 }; 105 };
106 106
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 166
167 inline SVGMarkerElement* toSVGMarkerElement(Node* node) 167 inline SVGMarkerElement* toSVGMarkerElement(Node* node)
168 { 168 {
169 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(SVGNames::markerT ag)); 169 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(SVGNames::markerT ag));
170 return static_cast<SVGMarkerElement*>(node); 170 return static_cast<SVGMarkerElement*>(node);
171 } 171 }
172 172
173 } 173 }
174 174
175 #endif 175 #endif
OLDNEW
« no previous file with comments | « Source/core/svg/SVGLocatable.cpp ('k') | Source/core/svg/SVGMarkerElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698