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 20 matching lines...) Expand all Loading... |
31 | 31 |
32 namespace blink { | 32 namespace blink { |
33 | 33 |
34 enum SVGMarkerUnitsType { | 34 enum SVGMarkerUnitsType { |
35 SVGMarkerUnitsUnknown = 0, | 35 SVGMarkerUnitsUnknown = 0, |
36 SVGMarkerUnitsUserSpaceOnUse, | 36 SVGMarkerUnitsUserSpaceOnUse, |
37 SVGMarkerUnitsStrokeWidth | 37 SVGMarkerUnitsStrokeWidth |
38 }; | 38 }; |
39 template<> const SVGEnumerationStringEntries& getStaticStringEntries<SVGMarkerUn
itsType>(); | 39 template<> const SVGEnumerationStringEntries& getStaticStringEntries<SVGMarkerUn
itsType>(); |
40 | 40 |
41 class SVGMarkerElement FINAL : public SVGElement, | 41 class SVGMarkerElement final : public SVGElement, |
42 public SVGFitToViewBox { | 42 public SVGFitToViewBox { |
43 DEFINE_WRAPPERTYPEINFO(); | 43 DEFINE_WRAPPERTYPEINFO(); |
44 public: | 44 public: |
45 // Forward declare enumerations in the W3C naming scheme, for IDL generation
. | 45 // Forward declare enumerations in the W3C naming scheme, for IDL generation
. |
46 enum { | 46 enum { |
47 SVG_MARKERUNITS_UNKNOWN = SVGMarkerUnitsUnknown, | 47 SVG_MARKERUNITS_UNKNOWN = SVGMarkerUnitsUnknown, |
48 SVG_MARKERUNITS_USERSPACEONUSE = SVGMarkerUnitsUserSpaceOnUse, | 48 SVG_MARKERUNITS_USERSPACEONUSE = SVGMarkerUnitsUserSpaceOnUse, |
49 SVG_MARKERUNITS_STROKEWIDTH = SVGMarkerUnitsStrokeWidth | 49 SVG_MARKERUNITS_STROKEWIDTH = SVGMarkerUnitsStrokeWidth |
50 }; | 50 }; |
51 | 51 |
(...skipping 14 matching lines...) Expand all Loading... |
66 SVGAnimatedLength* refY() const { return m_refY.get(); } | 66 SVGAnimatedLength* refY() const { return m_refY.get(); } |
67 SVGAnimatedLength* markerWidth() const { return m_markerWidth.get(); } | 67 SVGAnimatedLength* markerWidth() const { return m_markerWidth.get(); } |
68 SVGAnimatedLength* markerHeight() const { return m_markerHeight.get(); } | 68 SVGAnimatedLength* markerHeight() const { return m_markerHeight.get(); } |
69 SVGAnimatedEnumeration<SVGMarkerUnitsType>* markerUnits() { return m_markerU
nits.get(); } | 69 SVGAnimatedEnumeration<SVGMarkerUnitsType>* markerUnits() { return m_markerU
nits.get(); } |
70 SVGAnimatedAngle* orientAngle() { return m_orientAngle.get(); } | 70 SVGAnimatedAngle* orientAngle() { return m_orientAngle.get(); } |
71 SVGAnimatedEnumeration<SVGMarkerOrientType>* orientType() { return m_orientA
ngle->orientType(); } | 71 SVGAnimatedEnumeration<SVGMarkerOrientType>* orientType() { return m_orientA
ngle->orientType(); } |
72 | 72 |
73 private: | 73 private: |
74 explicit SVGMarkerElement(Document&); | 74 explicit SVGMarkerElement(Document&); |
75 | 75 |
76 virtual bool needsPendingResourceHandling() const OVERRIDE { return false; } | 76 virtual bool needsPendingResourceHandling() const override { return false; } |
77 | 77 |
78 bool isSupportedAttribute(const QualifiedName&); | 78 bool isSupportedAttribute(const QualifiedName&); |
79 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 79 virtual void parseAttribute(const QualifiedName&, const AtomicString&) overr
ide; |
80 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE; | 80 virtual void svgAttributeChanged(const QualifiedName&) override; |
81 virtual void childrenChanged(const ChildrenChange&) OVERRIDE; | 81 virtual void childrenChanged(const ChildrenChange&) override; |
82 | 82 |
83 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE; | 83 virtual RenderObject* createRenderer(RenderStyle*) override; |
84 virtual bool rendererIsNeeded(const RenderStyle&) OVERRIDE { return true; } | 84 virtual bool rendererIsNeeded(const RenderStyle&) override { return true; } |
85 | 85 |
86 virtual bool selfHasRelativeLengths() const OVERRIDE; | 86 virtual bool selfHasRelativeLengths() const override; |
87 | 87 |
88 RefPtr<SVGAnimatedLength> m_refX; | 88 RefPtr<SVGAnimatedLength> m_refX; |
89 RefPtr<SVGAnimatedLength> m_refY; | 89 RefPtr<SVGAnimatedLength> m_refY; |
90 RefPtr<SVGAnimatedLength> m_markerWidth; | 90 RefPtr<SVGAnimatedLength> m_markerWidth; |
91 RefPtr<SVGAnimatedLength> m_markerHeight; | 91 RefPtr<SVGAnimatedLength> m_markerHeight; |
92 RefPtr<SVGAnimatedAngle> m_orientAngle; | 92 RefPtr<SVGAnimatedAngle> m_orientAngle; |
93 RefPtr<SVGAnimatedEnumeration<SVGMarkerUnitsType> > m_markerUnits; | 93 RefPtr<SVGAnimatedEnumeration<SVGMarkerUnitsType> > m_markerUnits; |
94 }; | 94 }; |
95 | 95 |
96 } // namespace blink | 96 } // namespace blink |
97 | 97 |
98 #endif // SVGMarkerElement_h | 98 #endif // SVGMarkerElement_h |
OLD | NEW |