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

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

Issue 62083002: Remove support for the externalResourcesRequired attribute. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 1 month 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 * 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,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details. 13 * Library General Public License for more details.
14 * 14 *
15 * You should have received a copy of the GNU Library General Public License 15 * You should have received a copy of the GNU Library General Public License
16 * along with this library; see the file COPYING.LIB. If not, write to 16 * along with this library; see the file COPYING.LIB. If not, write to
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA. 18 * Boston, MA 02110-1301, USA.
19 */ 19 */
20 20
21 #ifndef SVGSVGElement_h 21 #ifndef SVGSVGElement_h
22 #define SVGSVGElement_h 22 #define SVGSVGElement_h
23 23
24 #include "core/svg/SVGAnimatedBoolean.h" 24 #include "core/svg/SVGAnimatedBoolean.h"
25 #include "core/svg/SVGAnimatedLength.h" 25 #include "core/svg/SVGAnimatedLength.h"
26 #include "core/svg/SVGAnimatedPreserveAspectRatio.h" 26 #include "core/svg/SVGAnimatedPreserveAspectRatio.h"
27 #include "core/svg/SVGAnimatedRect.h" 27 #include "core/svg/SVGAnimatedRect.h"
28 #include "core/svg/SVGExternalResourcesRequired.h"
29 #include "core/svg/SVGFitToViewBox.h" 28 #include "core/svg/SVGFitToViewBox.h"
30 #include "core/svg/SVGGraphicsElement.h" 29 #include "core/svg/SVGGraphicsElement.h"
31 #include "core/svg/SVGZoomAndPan.h" 30 #include "core/svg/SVGZoomAndPan.h"
32 31
33 namespace WebCore { 32 namespace WebCore {
34 33
35 class SVGAngle; 34 class SVGAngle;
36 class SVGMatrix; 35 class SVGMatrix;
37 class SVGTransform; 36 class SVGTransform;
38 class SVGViewSpec; 37 class SVGViewSpec;
39 class SVGViewElement; 38 class SVGViewElement;
40 class SMILTimeContainer; 39 class SMILTimeContainer;
41 40
42 class SVGSVGElement FINAL : public SVGGraphicsElement, 41 class SVGSVGElement FINAL : public SVGGraphicsElement,
43 public SVGExternalResourcesRequired,
44 public SVGFitToViewBox, 42 public SVGFitToViewBox,
45 public SVGZoomAndPan { 43 public SVGZoomAndPan {
46 public: 44 public:
47 static PassRefPtr<SVGSVGElement> create(const QualifiedName&, Document&); 45 static PassRefPtr<SVGSVGElement> create(const QualifiedName&, Document&);
48 46
49 using SVGGraphicsElement::ref; 47 using SVGGraphicsElement::ref;
50 using SVGGraphicsElement::deref; 48 using SVGGraphicsElement::deref;
51 49
52 virtual bool isValid() const { return SVGTests::isValid(); } 50 virtual bool isValid() const { return SVGTests::isValid(); }
53 virtual bool supportsFocus() const OVERRIDE { return hasFocusEventListeners( ); } 51 virtual bool supportsFocus() const OVERRIDE { return hasFocusEventListeners( ); }
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 CollectEnclosureList 155 CollectEnclosureList
158 }; 156 };
159 157
160 PassRefPtr<NodeList> collectIntersectionOrEnclosureList(const SVGRect&, SVGE lement*, CollectIntersectionOrEnclosure) const; 158 PassRefPtr<NodeList> collectIntersectionOrEnclosureList(const SVGRect&, SVGE lement*, CollectIntersectionOrEnclosure) const;
161 159
162 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGSVGElement) 160 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGSVGElement)
163 DECLARE_ANIMATED_LENGTH(X, x) 161 DECLARE_ANIMATED_LENGTH(X, x)
164 DECLARE_ANIMATED_LENGTH(Y, y) 162 DECLARE_ANIMATED_LENGTH(Y, y)
165 DECLARE_ANIMATED_LENGTH(Width, width) 163 DECLARE_ANIMATED_LENGTH(Width, width)
166 DECLARE_ANIMATED_LENGTH(Height, height) 164 DECLARE_ANIMATED_LENGTH(Height, height)
167 DECLARE_ANIMATED_BOOLEAN(ExternalResourcesRequired, externalResourcesReq uired)
168 DECLARE_ANIMATED_RECT(ViewBox, viewBox) 165 DECLARE_ANIMATED_RECT(ViewBox, viewBox)
169 DECLARE_ANIMATED_PRESERVEASPECTRATIO(PreserveAspectRatio, preserveAspect Ratio) 166 DECLARE_ANIMATED_PRESERVEASPECTRATIO(PreserveAspectRatio, preserveAspect Ratio)
170 END_DECLARE_ANIMATED_PROPERTIES 167 END_DECLARE_ANIMATED_PROPERTIES
171 168
172 virtual AffineTransform localCoordinateSpaceTransform(SVGLocatable::CTMScope ) const; 169 virtual AffineTransform localCoordinateSpaceTransform(SVGLocatable::CTMScope ) const;
173 170
174 bool m_useCurrentView; 171 bool m_useCurrentView;
175 SVGZoomAndPanType m_zoomAndPan; 172 SVGZoomAndPanType m_zoomAndPan;
176 RefPtr<SMILTimeContainer> m_timeContainer; 173 RefPtr<SMILTimeContainer> m_timeContainer;
177 SVGPoint m_translation; 174 SVGPoint m_translation;
178 RefPtr<SVGViewSpec> m_viewSpec; 175 RefPtr<SVGViewSpec> m_viewSpec;
179 }; 176 };
180 177
181 inline SVGSVGElement* toSVGSVGElement(Node* node) 178 inline SVGSVGElement* toSVGSVGElement(Node* node)
182 { 179 {
183 ASSERT_WITH_SECURITY_IMPLICATION(!node || toSVGElement(node)->isSVGSVGElemen t()); 180 ASSERT_WITH_SECURITY_IMPLICATION(!node || toSVGElement(node)->isSVGSVGElemen t());
184 return static_cast<SVGSVGElement*>(node); 181 return static_cast<SVGSVGElement*>(node);
185 } 182 }
186 183
187 inline const SVGSVGElement* toSVGSVGElement(const Node* node) 184 inline const SVGSVGElement* toSVGSVGElement(const Node* node)
188 { 185 {
189 ASSERT_WITH_SECURITY_IMPLICATION(!node || toSVGElement(node)->isSVGSVGElemen t()); 186 ASSERT_WITH_SECURITY_IMPLICATION(!node || toSVGElement(node)->isSVGSVGElemen t());
190 return static_cast<const SVGSVGElement*>(node); 187 return static_cast<const SVGSVGElement*>(node);
191 } 188 }
192 189
193 } // namespace WebCore 190 } // namespace WebCore
194 191
195 #endif 192 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698