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

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

Issue 168923002: Drop [LegacyImplementedInBaseClass] from SVGZoomAndSpan IDL interface (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Further refactoring Created 6 years, 10 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 | « no previous file | Source/core/svg/SVGSVGElement.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 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2006 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2006, 2007, 2010 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006, 2007, 2010 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 119
120 AffineTransform viewBoxToViewTransform(float viewWidth, float viewHeight) co nst; 120 AffineTransform viewBoxToViewTransform(float viewWidth, float viewHeight) co nst;
121 121
122 void setupInitialView(const String& fragmentIdentifier, Element* anchorNode) ; 122 void setupInitialView(const String& fragmentIdentifier, Element* anchorNode) ;
123 123
124 Element* getElementById(const AtomicString&) const; 124 Element* getElementById(const AtomicString&) const;
125 125
126 bool widthAttributeEstablishesViewport() const; 126 bool widthAttributeEstablishesViewport() const;
127 bool heightAttributeEstablishesViewport() const; 127 bool heightAttributeEstablishesViewport() const;
128 128
129 SVGZoomAndPanType zoomAndPan() const { return m_zoomAndPan; }
130 void setZoomAndPan(unsigned short zoomAndPan) { m_zoomAndPan = SVGZoomAndPan ::parseFromNumber(zoomAndPan); }
131
132 bool hasEmptyViewBox() const { return m_viewBox->currentValue()->isValid() & & m_viewBox->currentValue()->value().isEmpty(); } 129 bool hasEmptyViewBox() const { return m_viewBox->currentValue()->isValid() & & m_viewBox->currentValue()->value().isEmpty(); }
133 130
134 SVGAnimatedLength* x() const { return m_x.get(); } 131 SVGAnimatedLength* x() const { return m_x.get(); }
135 SVGAnimatedLength* y() const { return m_y.get(); } 132 SVGAnimatedLength* y() const { return m_y.get(); }
136 SVGAnimatedLength* width() const { return m_width.get(); } 133 SVGAnimatedLength* width() const { return m_width.get(); }
137 SVGAnimatedLength* height() const { return m_height.get(); } 134 SVGAnimatedLength* height() const { return m_height.get(); }
138 SVGAnimatedRect* viewBox() const { return m_viewBox.get(); } 135 SVGAnimatedRect* viewBox() const { return m_viewBox.get(); }
139 SVGAnimatedPreserveAspectRatio* preserveAspectRatio() { return m_preserveAsp ectRatio.get(); } 136 SVGAnimatedPreserveAspectRatio* preserveAspectRatio() { return m_preserveAsp ectRatio.get(); }
140 137
141 private: 138 private:
(...skipping 30 matching lines...) Expand all
172 RefPtr<SVGAnimatedLength> m_width; 169 RefPtr<SVGAnimatedLength> m_width;
173 RefPtr<SVGAnimatedLength> m_height; 170 RefPtr<SVGAnimatedLength> m_height;
174 RefPtr<SVGAnimatedRect> m_viewBox; 171 RefPtr<SVGAnimatedRect> m_viewBox;
175 RefPtr<SVGAnimatedPreserveAspectRatio> m_preserveAspectRatio; 172 RefPtr<SVGAnimatedPreserveAspectRatio> m_preserveAspectRatio;
176 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGSVGElement) 173 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGSVGElement)
177 END_DECLARE_ANIMATED_PROPERTIES 174 END_DECLARE_ANIMATED_PROPERTIES
178 175
179 virtual AffineTransform localCoordinateSpaceTransform(SVGElement::CTMScope) const OVERRIDE; 176 virtual AffineTransform localCoordinateSpaceTransform(SVGElement::CTMScope) const OVERRIDE;
180 177
181 bool m_useCurrentView; 178 bool m_useCurrentView;
182 SVGZoomAndPanType m_zoomAndPan;
183 RefPtr<SMILTimeContainer> m_timeContainer; 179 RefPtr<SMILTimeContainer> m_timeContainer;
184 RefPtr<SVGPoint> m_translation; 180 RefPtr<SVGPoint> m_translation;
185 RefPtr<SVGViewSpec> m_viewSpec; 181 RefPtr<SVGViewSpec> m_viewSpec;
186 182
187 friend class SVGCurrentTranslateTearOff; 183 friend class SVGCurrentTranslateTearOff;
188 }; 184 };
189 185
190 inline bool isSVGSVGElement(const Node& node) 186 inline bool isSVGSVGElement(const Node& node)
191 { 187 {
192 return node.isSVGElement() && toSVGElement(node).isSVGSVGElement(); 188 return node.isSVGElement() && toSVGElement(node).isSVGSVGElement();
193 } 189 }
194 190
195 DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(SVGSVGElement); 191 DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(SVGSVGElement);
196 192
197 } // namespace WebCore 193 } // namespace WebCore
198 194
199 #endif 195 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/core/svg/SVGSVGElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698