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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 | 44 |
45 ScriptLoader* loader() const { return m_loader.get(); } | 45 ScriptLoader* loader() const { return m_loader.get(); } |
46 | 46 |
47 private: | 47 private: |
48 SVGScriptElement(Document&, bool wasInsertedByParser, bool alreadyStarted); | 48 SVGScriptElement(Document&, bool wasInsertedByParser, bool alreadyStarted); |
49 | 49 |
50 bool isSupportedAttribute(const QualifiedName&); | 50 bool isSupportedAttribute(const QualifiedName&); |
51 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 51 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; |
52 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; | 52 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; |
53 virtual void didNotifySubtreeInsertionsToDocument() OVERRIDE; | 53 virtual void didNotifySubtreeInsertionsToDocument() OVERRIDE; |
54 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang
e = 0, Node* afterChange = 0, int childCountDelta = 0); | 54 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang
e = 0, Node* afterChange = 0, int childCountDelta = 0) OVERRIDE; |
55 | 55 |
56 virtual void svgAttributeChanged(const QualifiedName&); | 56 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE; |
57 virtual bool isURLAttribute(const Attribute&) const OVERRIDE; | 57 virtual bool isURLAttribute(const Attribute&) const OVERRIDE; |
58 virtual bool isStructurallyExternal() const { return hasSourceAttribute(); } | 58 virtual bool isStructurallyExternal() const OVERRIDE { return hasSourceAttri
bute(); } |
59 virtual void finishParsingChildren(); | 59 virtual void finishParsingChildren() OVERRIDE; |
60 | 60 |
61 virtual bool haveLoadedRequiredResources() OVERRIDE; | 61 virtual bool haveLoadedRequiredResources() OVERRIDE; |
62 | 62 |
63 virtual String sourceAttributeValue() const; | 63 virtual String sourceAttributeValue() const OVERRIDE; |
64 virtual String charsetAttributeValue() const; | 64 virtual String charsetAttributeValue() const OVERRIDE; |
65 virtual String typeAttributeValue() const; | 65 virtual String typeAttributeValue() const OVERRIDE; |
66 virtual String languageAttributeValue() const; | 66 virtual String languageAttributeValue() const OVERRIDE; |
67 virtual String forAttributeValue() const; | 67 virtual String forAttributeValue() const OVERRIDE; |
68 virtual String eventAttributeValue() const; | 68 virtual String eventAttributeValue() const OVERRIDE; |
69 virtual bool asyncAttributeValue() const; | 69 virtual bool asyncAttributeValue() const OVERRIDE; |
70 virtual bool deferAttributeValue() const; | 70 virtual bool deferAttributeValue() const OVERRIDE; |
71 virtual bool hasSourceAttribute() const; | 71 virtual bool hasSourceAttribute() const OVERRIDE; |
72 | 72 |
73 virtual void dispatchLoadEvent(); | 73 virtual void dispatchLoadEvent() OVERRIDE; |
74 | 74 |
75 virtual PassRefPtr<Element> cloneElementWithoutAttributesAndChildren(); | 75 virtual PassRefPtr<Element> cloneElementWithoutAttributesAndChildren() OVERR
IDE; |
76 virtual bool rendererIsNeeded(const RenderStyle&) OVERRIDE { return false; } | 76 virtual bool rendererIsNeeded(const RenderStyle&) OVERRIDE { return false; } |
77 | 77 |
78 virtual Timer<SVGElement>* svgLoadEventTimer() OVERRIDE { return &m_svgLoadE
ventTimer; } | 78 virtual Timer<SVGElement>* svgLoadEventTimer() OVERRIDE { return &m_svgLoadE
ventTimer; } |
79 | 79 |
80 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGScriptElement) | 80 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGScriptElement) |
81 DECLARE_ANIMATED_STRING(Href, href) | 81 DECLARE_ANIMATED_STRING(Href, href) |
82 END_DECLARE_ANIMATED_PROPERTIES | 82 END_DECLARE_ANIMATED_PROPERTIES |
83 | 83 |
84 String m_type; | 84 String m_type; |
85 Timer<SVGElement> m_svgLoadEventTimer; | 85 Timer<SVGElement> m_svgLoadEventTimer; |
86 OwnPtr<ScriptLoader> m_loader; | 86 OwnPtr<ScriptLoader> m_loader; |
87 }; | 87 }; |
88 | 88 |
89 DEFINE_NODE_TYPE_CASTS(SVGScriptElement, hasTagName(SVGNames::scriptTag)); | 89 DEFINE_NODE_TYPE_CASTS(SVGScriptElement, hasTagName(SVGNames::scriptTag)); |
90 | 90 |
91 } // namespace WebCore | 91 } // namespace WebCore |
92 | 92 |
93 #endif | 93 #endif |
OLD | NEW |