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

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

Issue 2537223006: Cleanup after removal of the SVGViewSpec interface (Closed)
Patch Set: Moar Created 4 years 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
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 * Copyright (C) 2014 Google, Inc. 4 * Copyright (C) 2014 Google, Inc.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 43
44 class SVGSVGElement final : public SVGGraphicsElement, 44 class SVGSVGElement final : public SVGGraphicsElement,
45 public SVGFitToViewBox, 45 public SVGFitToViewBox,
46 public SVGZoomAndPan { 46 public SVGZoomAndPan {
47 DEFINE_WRAPPERTYPEINFO(); 47 DEFINE_WRAPPERTYPEINFO();
48 USING_GARBAGE_COLLECTED_MIXIN(SVGSVGElement); 48 USING_GARBAGE_COLLECTED_MIXIN(SVGSVGElement);
49 49
50 public: 50 public:
51 DECLARE_NODE_FACTORY(SVGSVGElement); 51 DECLARE_NODE_FACTORY(SVGSVGElement);
52 52
53 // 'SVGSVGElement' functions
54 bool useCurrentView() const { return m_useCurrentView; }
55 SVGViewSpec* currentView();
56
57 float intrinsicWidth() const; 53 float intrinsicWidth() const;
58 float intrinsicHeight() const; 54 float intrinsicHeight() const;
59 FloatSize currentViewportSize() const; 55 FloatSize currentViewportSize() const;
60 FloatRect currentViewBoxRect() const; 56 FloatRect currentViewBoxRect() const;
61 SVGPreserveAspectRatio* currentPreserveAspectRatio() const; 57 SVGPreserveAspectRatio* currentPreserveAspectRatio() const;
62 58
63 float currentScale() const; 59 float currentScale() const;
64 void setCurrentScale(float scale); 60 void setCurrentScale(float scale);
65 61
66 FloatPoint currentTranslate() { return m_translation->value(); } 62 FloatPoint currentTranslate() { return m_translation->value(); }
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 SVGAnimatedLength* y() const { return m_y.get(); } 108 SVGAnimatedLength* y() const { return m_y.get(); }
113 SVGAnimatedLength* width() const { return m_width.get(); } 109 SVGAnimatedLength* width() const { return m_width.get(); }
114 SVGAnimatedLength* height() const { return m_height.get(); } 110 SVGAnimatedLength* height() const { return m_height.get(); }
115 111
116 DECLARE_VIRTUAL_TRACE(); 112 DECLARE_VIRTUAL_TRACE();
117 113
118 private: 114 private:
119 explicit SVGSVGElement(Document&); 115 explicit SVGSVGElement(Document&);
120 ~SVGSVGElement() override; 116 ~SVGSVGElement() override;
121 117
118 SVGViewSpec* ensureViewSpec();
pdr. 2016/11/30 22:07:18 Nit: return a reference?
fs 2016/11/30 22:40:47 Done.
119
122 void parseAttribute(const QualifiedName&, 120 void parseAttribute(const QualifiedName&,
123 const AtomicString&, 121 const AtomicString&,
124 const AtomicString&) override; 122 const AtomicString&) override;
125 bool isPresentationAttribute(const QualifiedName&) const override; 123 bool isPresentationAttribute(const QualifiedName&) const override;
126 bool isPresentationAttributeWithSVGDOM(const QualifiedName&) const override; 124 bool isPresentationAttributeWithSVGDOM(const QualifiedName&) const override;
127 void collectStyleForPresentationAttribute(const QualifiedName&, 125 void collectStyleForPresentationAttribute(const QualifiedName&,
128 const AtomicString&, 126 const AtomicString&,
129 MutableStylePropertySet*) override; 127 MutableStylePropertySet*) override;
130 128
131 bool layoutObjectIsNeeded(const ComputedStyle&) override; 129 bool layoutObjectIsNeeded(const ComputedStyle&) override;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 Member<SVGPoint> m_translation; 166 Member<SVGPoint> m_translation;
169 Member<SVGViewSpec> m_viewSpec; 167 Member<SVGViewSpec> m_viewSpec;
170 float m_currentScale; 168 float m_currentScale;
171 169
172 friend class SVGCurrentTranslateTearOff; 170 friend class SVGCurrentTranslateTearOff;
173 }; 171 };
174 172
175 } // namespace blink 173 } // namespace blink
176 174
177 #endif // SVGSVGElement_h 175 #endif // SVGSVGElement_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGPreserveAspectRatio.h ('k') | third_party/WebKit/Source/core/svg/SVGSVGElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698