OLD | NEW |
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 21 matching lines...) Expand all Loading... |
32 namespace WebCore { | 32 namespace WebCore { |
33 | 33 |
34 class ScriptLoader; | 34 class ScriptLoader; |
35 | 35 |
36 class SVGScriptElement FINAL | 36 class SVGScriptElement FINAL |
37 : public SVGElement | 37 : public SVGElement |
38 , public SVGURIReference | 38 , public SVGURIReference |
39 , public SVGExternalResourcesRequired | 39 , public SVGExternalResourcesRequired |
40 , public ScriptLoaderClient { | 40 , public ScriptLoaderClient { |
41 public: | 41 public: |
42 static PassRefPtr<SVGScriptElement> create(const QualifiedName&, Document&,
bool wasInsertedByParser); | 42 static PassRefPtr<SVGScriptElement> create(Document&, bool wasInsertedByPars
er); |
43 | 43 |
44 String type() const; | 44 String type() const; |
45 void setType(const String&); | 45 void setType(const String&); |
46 | 46 |
47 ScriptLoader* loader() const { return m_loader.get(); } | 47 ScriptLoader* loader() const { return m_loader.get(); } |
48 | 48 |
49 private: | 49 private: |
50 SVGScriptElement(const QualifiedName&, Document&, bool wasInsertedByParser,
bool alreadyStarted); | 50 SVGScriptElement(Document&, bool wasInsertedByParser, bool alreadyStarted); |
51 | 51 |
52 bool isSupportedAttribute(const QualifiedName&); | 52 bool isSupportedAttribute(const QualifiedName&); |
53 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 53 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; |
54 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; | 54 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; |
55 virtual void didNotifySubtreeInsertionsToDocument() OVERRIDE; | 55 virtual void didNotifySubtreeInsertionsToDocument() OVERRIDE; |
56 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang
e = 0, Node* afterChange = 0, int childCountDelta = 0); | 56 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang
e = 0, Node* afterChange = 0, int childCountDelta = 0); |
57 | 57 |
58 virtual void svgAttributeChanged(const QualifiedName&); | 58 virtual void svgAttributeChanged(const QualifiedName&); |
59 virtual bool isURLAttribute(const Attribute&) const OVERRIDE; | 59 virtual bool isURLAttribute(const Attribute&) const OVERRIDE; |
60 virtual void finishParsingChildren(); | 60 virtual void finishParsingChildren(); |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 String m_type; | 92 String m_type; |
93 Timer<SVGElement> m_svgLoadEventTimer; | 93 Timer<SVGElement> m_svgLoadEventTimer; |
94 OwnPtr<ScriptLoader> m_loader; | 94 OwnPtr<ScriptLoader> m_loader; |
95 }; | 95 }; |
96 | 96 |
97 DEFINE_NODE_TYPE_CASTS(SVGScriptElement, hasTagName(SVGNames::scriptTag)); | 97 DEFINE_NODE_TYPE_CASTS(SVGScriptElement, hasTagName(SVGNames::scriptTag)); |
98 | 98 |
99 } // namespace WebCore | 99 } // namespace WebCore |
100 | 100 |
101 #endif | 101 #endif |
OLD | NEW |