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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 virtual String languageAttributeValue() const; | 68 virtual String languageAttributeValue() const; |
69 virtual String forAttributeValue() const; | 69 virtual String forAttributeValue() const; |
70 virtual String eventAttributeValue() const; | 70 virtual String eventAttributeValue() const; |
71 virtual bool asyncAttributeValue() const; | 71 virtual bool asyncAttributeValue() const; |
72 virtual bool deferAttributeValue() const; | 72 virtual bool deferAttributeValue() const; |
73 virtual bool hasSourceAttribute() const; | 73 virtual bool hasSourceAttribute() const; |
74 | 74 |
75 virtual void dispatchLoadEvent() { SVGExternalResourcesRequired::dispatchLoa
dEvent(this); } | 75 virtual void dispatchLoadEvent() { SVGExternalResourcesRequired::dispatchLoa
dEvent(this); } |
76 | 76 |
77 virtual PassRefPtr<Element> cloneElementWithoutAttributesAndChildren(); | 77 virtual PassRefPtr<Element> cloneElementWithoutAttributesAndChildren(); |
78 virtual bool rendererIsNeeded(const NodeRenderingContext&) OVERRIDE { return
false; } | 78 virtual bool rendererIsNeeded(const RenderStyle&) OVERRIDE { return false; } |
79 | 79 |
80 // SVGExternalResourcesRequired | 80 // SVGExternalResourcesRequired |
81 virtual void setHaveFiredLoadEvent(bool) OVERRIDE; | 81 virtual void setHaveFiredLoadEvent(bool) OVERRIDE; |
82 virtual bool isParserInserted() const OVERRIDE; | 82 virtual bool isParserInserted() const OVERRIDE; |
83 virtual bool haveFiredLoadEvent() const OVERRIDE; | 83 virtual bool haveFiredLoadEvent() const OVERRIDE; |
84 virtual Timer<SVGElement>* svgLoadEventTimer() OVERRIDE; | 84 virtual Timer<SVGElement>* svgLoadEventTimer() OVERRIDE; |
85 | 85 |
86 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGScriptElement) | 86 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGScriptElement) |
87 DECLARE_ANIMATED_STRING(Href, href) | 87 DECLARE_ANIMATED_STRING(Href, href) |
88 DECLARE_ANIMATED_BOOLEAN(ExternalResourcesRequired, externalResourcesReq
uired) | 88 DECLARE_ANIMATED_BOOLEAN(ExternalResourcesRequired, externalResourcesReq
uired) |
89 END_DECLARE_ANIMATED_PROPERTIES | 89 END_DECLARE_ANIMATED_PROPERTIES |
90 | 90 |
91 String m_type; | 91 String m_type; |
92 Timer<SVGElement> m_svgLoadEventTimer; | 92 Timer<SVGElement> m_svgLoadEventTimer; |
93 OwnPtr<ScriptLoader> m_loader; | 93 OwnPtr<ScriptLoader> m_loader; |
94 }; | 94 }; |
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 |