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(const QualifiedName&, Document&,
bool wasInsertedByParser); |
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(const QualifiedName&, 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 childrenChanged(bool changedByParser = false, Node* beforeChang
e = 0, Node* afterChange = 0, int childCountDelta = 0); | 55 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang
e = 0, Node* afterChange = 0, int childCountDelta = 0); |
56 | 56 |
57 virtual void svgAttributeChanged(const QualifiedName&); | 57 virtual void svgAttributeChanged(const QualifiedName&); |
58 virtual bool isURLAttribute(const Attribute&) const OVERRIDE; | 58 virtual bool isURLAttribute(const Attribute&) const OVERRIDE; |
59 virtual void finishParsingChildren(); | 59 virtual void finishParsingChildren(); |
60 | 60 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 | 95 |
96 inline SVGScriptElement* toSVGScriptElement(Node* node) | 96 inline SVGScriptElement* toSVGScriptElement(Node* node) |
97 { | 97 { |
98 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(SVGNames::scriptT
ag)); | 98 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(SVGNames::scriptT
ag)); |
99 return static_cast<SVGScriptElement*>(node); | 99 return static_cast<SVGScriptElement*>(node); |
100 } | 100 } |
101 | 101 |
102 } // namespace WebCore | 102 } // namespace WebCore |
103 | 103 |
104 #endif | 104 #endif |
OLD | NEW |