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

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

Issue 169033002: Drop [LegacyImplementedInBaseClass] from SVGFitToViewBox 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007 Rob Buis <buis@kde.org> 2 * Copyright (C) 2007 Rob Buis <buis@kde.org>
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Library General Public License for more details. 12 * Library General Public License for more details.
13 * 13 *
14 * You should have received a copy of the GNU Library General Public License 14 * You should have received a copy of the GNU Library General Public License
15 * along with this library; see the file COPYING.LIB. If not, write to 15 * along with this library; see the file COPYING.LIB. If not, write to
16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA. 17 * Boston, MA 02110-1301, USA.
18 */ 18 */
19 19
20 #ifndef SVGViewSpec_h 20 #ifndef SVGViewSpec_h
21 #define SVGViewSpec_h 21 #define SVGViewSpec_h
22 22
23 #include "bindings/v8/ScriptWrappable.h" 23 #include "bindings/v8/ScriptWrappable.h"
24 #include "core/svg/SVGAnimatedPreserveAspectRatio.h"
25 #include "core/svg/SVGAnimatedRect.h"
26 #include "core/svg/SVGFitToViewBox.h" 24 #include "core/svg/SVGFitToViewBox.h"
27 #include "core/svg/SVGSVGElement.h" 25 #include "core/svg/SVGSVGElement.h"
28 #include "core/svg/SVGTransformList.h" 26 #include "core/svg/SVGTransformList.h"
29 #include "core/svg/SVGZoomAndPan.h" 27 #include "core/svg/SVGZoomAndPan.h"
30 #include "wtf/WeakPtr.h" 28 #include "wtf/WeakPtr.h"
31 29
32 namespace WebCore { 30 namespace WebCore {
33 31
34 class ExceptionState; 32 class ExceptionState;
35 class SVGTransformListPropertyTearOff; 33 class SVGTransformListPropertyTearOff;
(...skipping 27 matching lines...) Expand all
63 void setZoomAndPan(unsigned short, ExceptionState&); 61 void setZoomAndPan(unsigned short, ExceptionState&);
64 void setZoomAndPanBaseValue(unsigned short zoomAndPan) { m_zoomAndPan = SVGZ oomAndPan::parseFromNumber(zoomAndPan); } 62 void setZoomAndPanBaseValue(unsigned short zoomAndPan) { m_zoomAndPan = SVGZ oomAndPan::parseFromNumber(zoomAndPan); }
65 63
66 SVGElement* contextElement() const { return m_contextElement; } 64 SVGElement* contextElement() const { return m_contextElement; }
67 void detachContextElement(); 65 void detachContextElement();
68 66
69 // Custom non-animated 'transform' property. 67 // Custom non-animated 'transform' property.
70 SVGTransformListPropertyTearOff* transform(); 68 SVGTransformListPropertyTearOff* transform();
71 SVGTransformList transformBaseValue() const { return m_transform; } 69 SVGTransformList transformBaseValue() const { return m_transform; }
72 70
73 SVGAnimatedRect* viewBox() { return m_viewBox.get(); }
74 SVGAnimatedPreserveAspectRatio* preserveAspectRatio() { return m_preserveAsp ectRatio.get(); }
75
76 private: 71 private:
77 explicit SVGViewSpec(SVGSVGElement*); 72 explicit SVGViewSpec(SVGSVGElement*);
78 73
79 static const SVGPropertyInfo* transformPropertyInfo(); 74 static const SVGPropertyInfo* transformPropertyInfo();
80 75
81 static const AtomicString& transformIdentifier(); 76 static const AtomicString& transformIdentifier();
82 77
83 static PassRefPtr<SVGAnimatedProperty> lookupOrCreateTransformWrapper(SVGVie wSpec* contextElement); 78 static PassRefPtr<SVGAnimatedProperty> lookupOrCreateTransformWrapper(SVGVie wSpec* contextElement);
84 79
85 template<typename CharType> 80 template<typename CharType>
86 bool parseViewSpecInternal(const CharType* ptr, const CharType* end); 81 bool parseViewSpecInternal(const CharType* ptr, const CharType* end);
87 82
88 // FIXME(oilpan): This is back-ptr to be cleared from contextElement. 83 // FIXME(oilpan): This is back-ptr to be cleared from contextElement.
89 SVGSVGElement* m_contextElement; 84 SVGSVGElement* m_contextElement;
90 85
91 SVGZoomAndPanType m_zoomAndPan; 86 SVGZoomAndPanType m_zoomAndPan;
92 SVGTransformList m_transform; 87 SVGTransformList m_transform;
93 RefPtr<SVGAnimatedRect> m_viewBox;
94 RefPtr<SVGAnimatedPreserveAspectRatio> m_preserveAspectRatio;
95 String m_viewTargetString; 88 String m_viewTargetString;
96 }; 89 };
97 90
98 } // namespace WebCore 91 } // namespace WebCore
99 92
100 #endif 93 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698