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

Side by Side Diff: Source/core/svg/SVGViewElement.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 | « Source/core/svg/SVGSVGElement.cpp ('k') | Source/core/svg/SVGViewElement.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, 2008 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2008 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2007 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2007 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 26 matching lines...) Expand all
37 public SVGZoomAndPan { 37 public SVGZoomAndPan {
38 public: 38 public:
39 static PassRefPtr<SVGViewElement> create(Document&); 39 static PassRefPtr<SVGViewElement> create(Document&);
40 40
41 using SVGElement::ref; 41 using SVGElement::ref;
42 using SVGElement::deref; 42 using SVGElement::deref;
43 43
44 SVGAnimatedRect* viewBox() { return m_viewBox.get(); } 44 SVGAnimatedRect* viewBox() { return m_viewBox.get(); }
45 45
46 SVGStringListTearOff* viewTarget() { return m_viewTarget->tearOff(); } 46 SVGStringListTearOff* viewTarget() { return m_viewTarget->tearOff(); }
47 SVGZoomAndPanType zoomAndPan() const { return m_zoomAndPan; }
48 void setZoomAndPan(unsigned short zoomAndPan) { m_zoomAndPan = SVGZoomAndPan ::parseFromNumber(zoomAndPan); }
49 SVGAnimatedPreserveAspectRatio* preserveAspectRatio() { return m_preserveAsp ectRatio.get(); } 47 SVGAnimatedPreserveAspectRatio* preserveAspectRatio() { return m_preserveAsp ectRatio.get(); }
50 48
51 private: 49 private:
52 explicit SVGViewElement(Document&); 50 explicit SVGViewElement(Document&);
53 51
54 // FIXME: svgAttributeChanged missing. 52 // FIXME: svgAttributeChanged missing.
55 bool isSupportedAttribute(const QualifiedName&); 53 bool isSupportedAttribute(const QualifiedName&);
56 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE; 54 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE;
57 55
58 virtual bool rendererIsNeeded(const RenderStyle&) OVERRIDE { return false; } 56 virtual bool rendererIsNeeded(const RenderStyle&) OVERRIDE { return false; }
59 57
60 RefPtr<SVGAnimatedRect> m_viewBox; 58 RefPtr<SVGAnimatedRect> m_viewBox;
61 RefPtr<SVGAnimatedPreserveAspectRatio> m_preserveAspectRatio; 59 RefPtr<SVGAnimatedPreserveAspectRatio> m_preserveAspectRatio;
62 RefPtr<SVGStaticStringList> m_viewTarget; 60 RefPtr<SVGStaticStringList> m_viewTarget;
63 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGViewElement) 61 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGViewElement)
64 END_DECLARE_ANIMATED_PROPERTIES 62 END_DECLARE_ANIMATED_PROPERTIES
65
66 SVGZoomAndPanType m_zoomAndPan;
67 }; 63 };
68 64
69 DEFINE_NODE_TYPE_CASTS(SVGViewElement, hasTagName(SVGNames::viewTag)); 65 DEFINE_NODE_TYPE_CASTS(SVGViewElement, hasTagName(SVGNames::viewTag));
70 66
71 } // namespace WebCore 67 } // namespace WebCore
72 68
73 #endif 69 #endif
OLDNEW
« no previous file with comments | « Source/core/svg/SVGSVGElement.cpp ('k') | Source/core/svg/SVGViewElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698