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

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

Issue 132233010: [SVG] SVGAnimatedRect migration to new SVG property impl. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebsaed 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/svg/SVGLengthTearOff.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,
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 115
116 void setOrientToAuto(); 116 void setOrientToAuto();
117 void setOrientToAngle(const SVGAngle&); 117 void setOrientToAngle(const SVGAngle&);
118 118
119 static const SVGPropertyInfo* orientTypePropertyInfo(); 119 static const SVGPropertyInfo* orientTypePropertyInfo();
120 120
121 SVGAnimatedLength* refX() const { return m_refX.get(); } 121 SVGAnimatedLength* refX() const { return m_refX.get(); }
122 SVGAnimatedLength* refY() const { return m_refY.get(); } 122 SVGAnimatedLength* refY() const { return m_refY.get(); }
123 SVGAnimatedLength* markerWidth() const { return m_markerWidth.get(); } 123 SVGAnimatedLength* markerWidth() const { return m_markerWidth.get(); }
124 SVGAnimatedLength* markerHeight() const { return m_markerHeight.get(); } 124 SVGAnimatedLength* markerHeight() const { return m_markerHeight.get(); }
125 SVGAnimatedRect* viewBox() const { return m_viewBox.get(); }
125 126
126 // Custom 'orientType' property. 127 // Custom 'orientType' property.
127 static void synchronizeOrientType(SVGElement* contextElement); 128 static void synchronizeOrientType(SVGElement* contextElement);
128 static PassRefPtr<SVGAnimatedProperty> lookupOrCreateOrientTypeWrapper(SVGEl ement* contextElement); 129 static PassRefPtr<SVGAnimatedProperty> lookupOrCreateOrientTypeWrapper(SVGEl ement* contextElement);
129 SVGMarkerOrientType& orientTypeCurrentValue() const { return m_orientType.va lue; } 130 SVGMarkerOrientType& orientTypeCurrentValue() const { return m_orientType.va lue; }
130 SVGMarkerOrientType& orientTypeBaseValue() const { return m_orientType.value ; } 131 SVGMarkerOrientType& orientTypeBaseValue() const { return m_orientType.value ; }
131 void setOrientTypeBaseValue(const SVGMarkerOrientType& type) { m_orientType. value = type; } 132 void setOrientTypeBaseValue(const SVGMarkerOrientType& type) { m_orientType. value = type; }
132 PassRefPtr<SVGAnimatedEnumerationPropertyTearOff<SVGMarkerOrientType> > orie ntType(); 133 PassRefPtr<SVGAnimatedEnumerationPropertyTearOff<SVGMarkerOrientType> > orie ntType();
133 134
134 private: 135 private:
(...skipping 13 matching lines...) Expand all
148 149
149 void synchronizeOrientType(); 150 void synchronizeOrientType();
150 151
151 static const AtomicString& orientTypeIdentifier(); 152 static const AtomicString& orientTypeIdentifier();
152 static const AtomicString& orientAngleIdentifier(); 153 static const AtomicString& orientAngleIdentifier();
153 154
154 RefPtr<SVGAnimatedLength> m_refX; 155 RefPtr<SVGAnimatedLength> m_refX;
155 RefPtr<SVGAnimatedLength> m_refY; 156 RefPtr<SVGAnimatedLength> m_refY;
156 RefPtr<SVGAnimatedLength> m_markerWidth; 157 RefPtr<SVGAnimatedLength> m_markerWidth;
157 RefPtr<SVGAnimatedLength> m_markerHeight; 158 RefPtr<SVGAnimatedLength> m_markerHeight;
159 RefPtr<SVGAnimatedRect> m_viewBox;
158 mutable SVGSynchronizableAnimatedProperty<SVGMarkerOrientType> m_orientType; 160 mutable SVGSynchronizableAnimatedProperty<SVGMarkerOrientType> m_orientType;
159 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGMarkerElement) 161 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGMarkerElement)
160 DECLARE_ANIMATED_ENUMERATION(MarkerUnits, markerUnits, SVGMarkerUnitsTyp e) 162 DECLARE_ANIMATED_ENUMERATION(MarkerUnits, markerUnits, SVGMarkerUnitsTyp e)
161 DECLARE_ANIMATED_ANGLE(OrientAngle, orientAngle) 163 DECLARE_ANIMATED_ANGLE(OrientAngle, orientAngle)
162 DECLARE_ANIMATED_RECT(ViewBox, viewBox)
163 DECLARE_ANIMATED_PRESERVEASPECTRATIO(PreserveAspectRatio, preserveAspect Ratio) 164 DECLARE_ANIMATED_PRESERVEASPECTRATIO(PreserveAspectRatio, preserveAspect Ratio)
164 END_DECLARE_ANIMATED_PROPERTIES 165 END_DECLARE_ANIMATED_PROPERTIES
165 }; 166 };
166 167
167 DEFINE_NODE_TYPE_CASTS(SVGMarkerElement, hasTagName(SVGNames::markerTag)); 168 DEFINE_NODE_TYPE_CASTS(SVGMarkerElement, hasTagName(SVGNames::markerTag));
168 169
169 } 170 }
170 171
171 #endif 172 #endif
OLDNEW
« no previous file with comments | « Source/core/svg/SVGLengthTearOff.cpp ('k') | Source/core/svg/SVGMarkerElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698