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

Side by Side Diff: Source/core/svg/SVGScriptElement.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, 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 25 matching lines...) Expand all
36 : public SVGElement 36 : public SVGElement
37 , public SVGURIReference 37 , public SVGURIReference
38 , public ScriptLoaderClient { 38 , public ScriptLoaderClient {
39 public: 39 public:
40 static PassRefPtr<SVGScriptElement> create(Document&, bool wasInsertedByPars er); 40 static PassRefPtr<SVGScriptElement> create(Document&, bool wasInsertedByPars er);
41 41
42 String type() const; 42 String type() const;
43 void setType(const String&); 43 void setType(const String&);
44 44
45 ScriptLoader* loader() const { return m_loader.get(); } 45 ScriptLoader* loader() const { return m_loader.get(); }
46 SVGAnimatedString* href() { return m_href.get(); }
47 46
48 #ifndef NDEBUG 47 #ifndef NDEBUG
49 virtual bool isAnimatableAttribute(const QualifiedName&) const OVERRIDE; 48 virtual bool isAnimatableAttribute(const QualifiedName&) const OVERRIDE;
50 #endif 49 #endif
51 50
52 private: 51 private:
53 SVGScriptElement(Document&, bool wasInsertedByParser, bool alreadyStarted); 52 SVGScriptElement(Document&, bool wasInsertedByParser, bool alreadyStarted);
54 53
55 bool isSupportedAttribute(const QualifiedName&); 54 bool isSupportedAttribute(const QualifiedName&);
56 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE; 55 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE;
(...skipping 18 matching lines...) Expand all
75 virtual bool deferAttributeValue() const OVERRIDE; 74 virtual bool deferAttributeValue() const OVERRIDE;
76 virtual bool hasSourceAttribute() const OVERRIDE; 75 virtual bool hasSourceAttribute() const OVERRIDE;
77 76
78 virtual void dispatchLoadEvent() OVERRIDE; 77 virtual void dispatchLoadEvent() OVERRIDE;
79 78
80 virtual PassRefPtr<Element> cloneElementWithoutAttributesAndChildren() OVERR IDE; 79 virtual PassRefPtr<Element> cloneElementWithoutAttributesAndChildren() OVERR IDE;
81 virtual bool rendererIsNeeded(const RenderStyle&) OVERRIDE { return false; } 80 virtual bool rendererIsNeeded(const RenderStyle&) OVERRIDE { return false; }
82 81
83 virtual Timer<SVGElement>* svgLoadEventTimer() OVERRIDE { return &m_svgLoadE ventTimer; } 82 virtual Timer<SVGElement>* svgLoadEventTimer() OVERRIDE { return &m_svgLoadE ventTimer; }
84 83
85 RefPtr<SVGAnimatedString> m_href;
86 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGScriptElement) 84 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGScriptElement)
87 END_DECLARE_ANIMATED_PROPERTIES 85 END_DECLARE_ANIMATED_PROPERTIES
88 86
89 Timer<SVGElement> m_svgLoadEventTimer; 87 Timer<SVGElement> m_svgLoadEventTimer;
90 OwnPtr<ScriptLoader> m_loader; 88 OwnPtr<ScriptLoader> m_loader;
91 }; 89 };
92 90
93 DEFINE_NODE_TYPE_CASTS(SVGScriptElement, hasTagName(SVGNames::scriptTag)); 91 DEFINE_NODE_TYPE_CASTS(SVGScriptElement, hasTagName(SVGNames::scriptTag));
94 92
95 } // namespace WebCore 93 } // namespace WebCore
96 94
97 #endif 95 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698