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

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

Issue 148173018: [SVG] SVGAnimatedString{,List} migration to new SVG property impl. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove if 0 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(); }
46 47
47 private: 48 private:
48 SVGScriptElement(Document&, bool wasInsertedByParser, bool alreadyStarted); 49 SVGScriptElement(Document&, bool wasInsertedByParser, bool alreadyStarted);
49 50
50 bool isSupportedAttribute(const QualifiedName&); 51 bool isSupportedAttribute(const QualifiedName&);
51 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE; 52 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE;
52 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; 53 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE;
53 virtual void didNotifySubtreeInsertionsToDocument() OVERRIDE; 54 virtual void didNotifySubtreeInsertionsToDocument() OVERRIDE;
54 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang e = 0, Node* afterChange = 0, int childCountDelta = 0) OVERRIDE; 55 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang e = 0, Node* afterChange = 0, int childCountDelta = 0) OVERRIDE;
55 56
(...skipping 14 matching lines...) Expand all
70 virtual bool deferAttributeValue() const OVERRIDE; 71 virtual bool deferAttributeValue() const OVERRIDE;
71 virtual bool hasSourceAttribute() const OVERRIDE; 72 virtual bool hasSourceAttribute() const OVERRIDE;
72 73
73 virtual void dispatchLoadEvent() OVERRIDE; 74 virtual void dispatchLoadEvent() OVERRIDE;
74 75
75 virtual PassRefPtr<Element> cloneElementWithoutAttributesAndChildren() OVERR IDE; 76 virtual PassRefPtr<Element> cloneElementWithoutAttributesAndChildren() OVERR IDE;
76 virtual bool rendererIsNeeded(const RenderStyle&) OVERRIDE { return false; } 77 virtual bool rendererIsNeeded(const RenderStyle&) OVERRIDE { return false; }
77 78
78 virtual Timer<SVGElement>* svgLoadEventTimer() OVERRIDE { return &m_svgLoadE ventTimer; } 79 virtual Timer<SVGElement>* svgLoadEventTimer() OVERRIDE { return &m_svgLoadE ventTimer; }
79 80
81 RefPtr<SVGAnimatedString> m_href;
80 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGScriptElement) 82 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGScriptElement)
81 DECLARE_ANIMATED_STRING(Href, href)
82 END_DECLARE_ANIMATED_PROPERTIES 83 END_DECLARE_ANIMATED_PROPERTIES
83 84
84 String m_type; 85 String m_type;
85 Timer<SVGElement> m_svgLoadEventTimer; 86 Timer<SVGElement> m_svgLoadEventTimer;
86 OwnPtr<ScriptLoader> m_loader; 87 OwnPtr<ScriptLoader> m_loader;
87 }; 88 };
88 89
89 DEFINE_NODE_TYPE_CASTS(SVGScriptElement, hasTagName(SVGNames::scriptTag)); 90 DEFINE_NODE_TYPE_CASTS(SVGScriptElement, hasTagName(SVGNames::scriptTag));
90 91
91 } // namespace WebCore 92 } // namespace WebCore
92 93
93 #endif 94 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698