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

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

Issue 62083002: Remove support for the externalResourcesRequired attribute. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebaseline test Created 6 years, 11 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
« no previous file with comments | « Source/core/svg/SVGGradientElement.idl ('k') | Source/core/svg/SVGImageElement.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, 2008 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006 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 SVGImageElement_h 21 #ifndef SVGImageElement_h
22 #define SVGImageElement_h 22 #define SVGImageElement_h
23 23
24 #include "SVGNames.h" 24 #include "SVGNames.h"
25 #include "core/svg/SVGAnimatedBoolean.h" 25 #include "core/svg/SVGAnimatedBoolean.h"
26 #include "core/svg/SVGAnimatedLength.h" 26 #include "core/svg/SVGAnimatedLength.h"
27 #include "core/svg/SVGAnimatedPreserveAspectRatio.h" 27 #include "core/svg/SVGAnimatedPreserveAspectRatio.h"
28 #include "core/svg/SVGExternalResourcesRequired.h"
29 #include "core/svg/SVGGraphicsElement.h" 28 #include "core/svg/SVGGraphicsElement.h"
30 #include "core/svg/SVGImageLoader.h" 29 #include "core/svg/SVGImageLoader.h"
31 #include "core/svg/SVGURIReference.h" 30 #include "core/svg/SVGURIReference.h"
32 31
33 namespace WebCore { 32 namespace WebCore {
34 33
35 class SVGImageElement FINAL : public SVGGraphicsElement, 34 class SVGImageElement FINAL : public SVGGraphicsElement,
36 public SVGExternalResourcesRequired,
37 public SVGURIReference { 35 public SVGURIReference {
38 public: 36 public:
39 static PassRefPtr<SVGImageElement> create(Document&); 37 static PassRefPtr<SVGImageElement> create(Document&);
40 38
41 bool currentFrameHasSingleSecurityOrigin() const; 39 bool currentFrameHasSingleSecurityOrigin() const;
42 40
43 private: 41 private:
44 explicit SVGImageElement(Document&); 42 explicit SVGImageElement(Document&);
45 43
46 virtual bool isValid() const { return SVGTests::isValid(); } 44 virtual bool isValid() const { return SVGTests::isValid(); }
45 virtual bool isStructurallyExternal() const { return !hrefCurrentValue().isN ull(); }
47 virtual bool supportsFocus() const OVERRIDE { return hasFocusEventListeners( ); } 46 virtual bool supportsFocus() const OVERRIDE { return hasFocusEventListeners( ); }
48 47
49 bool isSupportedAttribute(const QualifiedName&); 48 bool isSupportedAttribute(const QualifiedName&);
50 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE; 49 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE;
51 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; 50 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE;
52 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons t AtomicString&, MutableStylePropertySet*) OVERRIDE; 51 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons t AtomicString&, MutableStylePropertySet*) OVERRIDE;
53 virtual void svgAttributeChanged(const QualifiedName&); 52 virtual void svgAttributeChanged(const QualifiedName&);
54 53
55 virtual void attach(const AttachContext& = AttachContext()) OVERRIDE; 54 virtual void attach(const AttachContext& = AttachContext()) OVERRIDE;
56 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; 55 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE;
57 56
58 virtual RenderObject* createRenderer(RenderStyle*); 57 virtual RenderObject* createRenderer(RenderStyle*);
59 58
60 virtual const AtomicString imageSourceURL() const OVERRIDE; 59 virtual const AtomicString imageSourceURL() const OVERRIDE;
61 60
62 virtual bool haveLoadedRequiredResources(); 61 virtual bool haveLoadedRequiredResources();
63 62
64 virtual bool selfHasRelativeLengths() const; 63 virtual bool selfHasRelativeLengths() const;
65 virtual void didMoveToNewDocument(Document& oldDocument) OVERRIDE; 64 virtual void didMoveToNewDocument(Document& oldDocument) OVERRIDE;
66 65
67 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGImageElement) 66 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGImageElement)
68 DECLARE_ANIMATED_LENGTH(X, x) 67 DECLARE_ANIMATED_LENGTH(X, x)
69 DECLARE_ANIMATED_LENGTH(Y, y) 68 DECLARE_ANIMATED_LENGTH(Y, y)
70 DECLARE_ANIMATED_LENGTH(Width, width) 69 DECLARE_ANIMATED_LENGTH(Width, width)
71 DECLARE_ANIMATED_LENGTH(Height, height) 70 DECLARE_ANIMATED_LENGTH(Height, height)
72 DECLARE_ANIMATED_PRESERVEASPECTRATIO(PreserveAspectRatio, preserveAspect Ratio) 71 DECLARE_ANIMATED_PRESERVEASPECTRATIO(PreserveAspectRatio, preserveAspect Ratio)
73 DECLARE_ANIMATED_STRING(Href, href) 72 DECLARE_ANIMATED_STRING(Href, href)
74 DECLARE_ANIMATED_BOOLEAN(ExternalResourcesRequired, externalResourcesReq uired)
75 END_DECLARE_ANIMATED_PROPERTIES 73 END_DECLARE_ANIMATED_PROPERTIES
76 74
77 SVGImageLoader m_imageLoader; 75 SVGImageLoader m_imageLoader;
78 }; 76 };
79 77
80 DEFINE_NODE_TYPE_CASTS(SVGImageElement, hasTagName(SVGNames::imageTag)); 78 DEFINE_NODE_TYPE_CASTS(SVGImageElement, hasTagName(SVGNames::imageTag));
81 79
82 } // namespace WebCore 80 } // namespace WebCore
83 81
84 #endif 82 #endif
OLDNEW
« no previous file with comments | « Source/core/svg/SVGGradientElement.idl ('k') | Source/core/svg/SVGImageElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698