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

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

Issue 134593005: Update SVG classes to use OVERRIDE / FINAL when needed (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 11 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
« no previous file with comments | « Source/core/svg/SVGMPathElement.h ('k') | Source/core/svg/SVGMaskElement.h » ('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,
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 static void synchronizeOrientType(SVGElement* contextElement); 127 static void synchronizeOrientType(SVGElement* contextElement);
128 static PassRefPtr<SVGAnimatedProperty> lookupOrCreateOrientTypeWrapper(SVGEl ement* contextElement); 128 static PassRefPtr<SVGAnimatedProperty> lookupOrCreateOrientTypeWrapper(SVGEl ement* contextElement);
129 SVGMarkerOrientType& orientTypeCurrentValue() const { return m_orientType.va lue; } 129 SVGMarkerOrientType& orientTypeCurrentValue() const { return m_orientType.va lue; }
130 SVGMarkerOrientType& orientTypeBaseValue() const { return m_orientType.value ; } 130 SVGMarkerOrientType& orientTypeBaseValue() const { return m_orientType.value ; }
131 void setOrientTypeBaseValue(const SVGMarkerOrientType& type) { m_orientType. value = type; } 131 void setOrientTypeBaseValue(const SVGMarkerOrientType& type) { m_orientType. value = type; }
132 PassRefPtr<SVGAnimatedEnumerationPropertyTearOff<SVGMarkerOrientType> > orie ntType(); 132 PassRefPtr<SVGAnimatedEnumerationPropertyTearOff<SVGMarkerOrientType> > orie ntType();
133 133
134 private: 134 private:
135 explicit SVGMarkerElement(Document&); 135 explicit SVGMarkerElement(Document&);
136 136
137 virtual bool needsPendingResourceHandling() const { return false; } 137 virtual bool needsPendingResourceHandling() const OVERRIDE { return false; }
138 138
139 bool isSupportedAttribute(const QualifiedName&); 139 bool isSupportedAttribute(const QualifiedName&);
140 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE; 140 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE;
141 virtual void svgAttributeChanged(const QualifiedName&); 141 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE;
142 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang e = 0, Node* afterChange = 0, int childCountDelta = 0); 142 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang e = 0, Node* afterChange = 0, int childCountDelta = 0) OVERRIDE;
143 143
144 virtual RenderObject* createRenderer(RenderStyle*); 144 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE;
145 virtual bool rendererIsNeeded(const RenderStyle&) { return true; } 145 virtual bool rendererIsNeeded(const RenderStyle&) OVERRIDE { return true; }
146 146
147 virtual bool selfHasRelativeLengths() const; 147 virtual bool selfHasRelativeLengths() const OVERRIDE;
148 148
149 void synchronizeOrientType(); 149 void synchronizeOrientType();
150 150
151 static const AtomicString& orientTypeIdentifier(); 151 static const AtomicString& orientTypeIdentifier();
152 static const AtomicString& orientAngleIdentifier(); 152 static const AtomicString& orientAngleIdentifier();
153 153
154 RefPtr<SVGAnimatedLength> m_refX; 154 RefPtr<SVGAnimatedLength> m_refX;
155 RefPtr<SVGAnimatedLength> m_refY; 155 RefPtr<SVGAnimatedLength> m_refY;
156 RefPtr<SVGAnimatedLength> m_markerWidth; 156 RefPtr<SVGAnimatedLength> m_markerWidth;
157 RefPtr<SVGAnimatedLength> m_markerHeight; 157 RefPtr<SVGAnimatedLength> m_markerHeight;
158 mutable SVGSynchronizableAnimatedProperty<SVGMarkerOrientType> m_orientType; 158 mutable SVGSynchronizableAnimatedProperty<SVGMarkerOrientType> m_orientType;
159 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGMarkerElement) 159 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGMarkerElement)
160 DECLARE_ANIMATED_ENUMERATION(MarkerUnits, markerUnits, SVGMarkerUnitsTyp e) 160 DECLARE_ANIMATED_ENUMERATION(MarkerUnits, markerUnits, SVGMarkerUnitsTyp e)
161 DECLARE_ANIMATED_ANGLE(OrientAngle, orientAngle) 161 DECLARE_ANIMATED_ANGLE(OrientAngle, orientAngle)
162 DECLARE_ANIMATED_RECT(ViewBox, viewBox) 162 DECLARE_ANIMATED_RECT(ViewBox, viewBox)
163 DECLARE_ANIMATED_PRESERVEASPECTRATIO(PreserveAspectRatio, preserveAspect Ratio) 163 DECLARE_ANIMATED_PRESERVEASPECTRATIO(PreserveAspectRatio, preserveAspect Ratio)
164 END_DECLARE_ANIMATED_PROPERTIES 164 END_DECLARE_ANIMATED_PROPERTIES
165 }; 165 };
166 166
167 DEFINE_NODE_TYPE_CASTS(SVGMarkerElement, hasTagName(SVGNames::markerTag)); 167 DEFINE_NODE_TYPE_CASTS(SVGMarkerElement, hasTagName(SVGNames::markerTag));
168 168
169 } 169 }
170 170
171 #endif 171 #endif
OLDNEW
« no previous file with comments | « Source/core/svg/SVGMPathElement.h ('k') | Source/core/svg/SVGMaskElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698