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

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

Issue 169103002: Drop [LegacyImplementedInBaseClass] from SVGURIReference IDL interface (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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) 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,
(...skipping 25 matching lines...) Expand all
36 public: 36 public:
37 static PassRefPtr<SVGImageElement> create(Document&); 37 static PassRefPtr<SVGImageElement> create(Document&);
38 38
39 bool currentFrameHasSingleSecurityOrigin() const; 39 bool currentFrameHasSingleSecurityOrigin() const;
40 40
41 SVGAnimatedLength* x() const { return m_x.get(); } 41 SVGAnimatedLength* x() const { return m_x.get(); }
42 SVGAnimatedLength* y() const { return m_y.get(); } 42 SVGAnimatedLength* y() const { return m_y.get(); }
43 SVGAnimatedLength* width() const { return m_width.get(); } 43 SVGAnimatedLength* width() const { return m_width.get(); }
44 SVGAnimatedLength* height() const { return m_height.get(); } 44 SVGAnimatedLength* height() const { return m_height.get(); }
45 SVGAnimatedPreserveAspectRatio* preserveAspectRatio() { return m_preserveAsp ectRatio.get(); } 45 SVGAnimatedPreserveAspectRatio* preserveAspectRatio() { return m_preserveAsp ectRatio.get(); }
46 SVGAnimatedString* href() { return m_href.get(); }
47 const SVGAnimatedString* href() const { return m_href.get(); }
48 46
49 private: 47 private:
50 explicit SVGImageElement(Document&); 48 explicit SVGImageElement(Document&);
51 49
52 virtual bool isStructurallyExternal() const OVERRIDE { return !href()->curre ntValue()->value().isNull(); } 50 virtual bool isStructurallyExternal() const OVERRIDE { return !hrefString(). isNull(); }
53 virtual bool supportsFocus() const OVERRIDE { return hasFocusEventListeners( ); } 51 virtual bool supportsFocus() const OVERRIDE { return hasFocusEventListeners( ); }
54 52
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 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; 55 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE;
58 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons t AtomicString&, MutableStylePropertySet*) OVERRIDE; 56 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons t AtomicString&, MutableStylePropertySet*) OVERRIDE;
59 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE; 57 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE;
60 58
61 virtual void attach(const AttachContext& = AttachContext()) OVERRIDE; 59 virtual void attach(const AttachContext& = AttachContext()) OVERRIDE;
62 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; 60 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE;
63 61
64 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE; 62 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE;
65 63
66 virtual const AtomicString imageSourceURL() const OVERRIDE; 64 virtual const AtomicString imageSourceURL() const OVERRIDE;
67 65
68 virtual bool haveLoadedRequiredResources() OVERRIDE; 66 virtual bool haveLoadedRequiredResources() OVERRIDE;
69 67
70 virtual bool selfHasRelativeLengths() const OVERRIDE; 68 virtual bool selfHasRelativeLengths() const OVERRIDE;
71 virtual void didMoveToNewDocument(Document& oldDocument) OVERRIDE; 69 virtual void didMoveToNewDocument(Document& oldDocument) OVERRIDE;
72 70
73 RefPtr<SVGAnimatedLength> m_x; 71 RefPtr<SVGAnimatedLength> m_x;
74 RefPtr<SVGAnimatedLength> m_y; 72 RefPtr<SVGAnimatedLength> m_y;
75 RefPtr<SVGAnimatedLength> m_width; 73 RefPtr<SVGAnimatedLength> m_width;
76 RefPtr<SVGAnimatedLength> m_height; 74 RefPtr<SVGAnimatedLength> m_height;
77 RefPtr<SVGAnimatedPreserveAspectRatio> m_preserveAspectRatio; 75 RefPtr<SVGAnimatedPreserveAspectRatio> m_preserveAspectRatio;
78 RefPtr<SVGAnimatedString> m_href;
79 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGImageElement) 76 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGImageElement)
80 END_DECLARE_ANIMATED_PROPERTIES 77 END_DECLARE_ANIMATED_PROPERTIES
81 78
82 SVGImageLoader m_imageLoader; 79 SVGImageLoader m_imageLoader;
83 }; 80 };
84 81
85 DEFINE_NODE_TYPE_CASTS(SVGImageElement, hasTagName(SVGNames::imageTag)); 82 DEFINE_NODE_TYPE_CASTS(SVGImageElement, hasTagName(SVGNames::imageTag));
86 83
87 } // namespace WebCore 84 } // namespace WebCore
88 85
89 #endif 86 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698