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 14 matching lines...) Expand all Loading... |
25 #include "core/dom/ScriptLoaderClient.h" | 25 #include "core/dom/ScriptLoaderClient.h" |
26 #include "core/svg/SVGAnimatedBoolean.h" | 26 #include "core/svg/SVGAnimatedBoolean.h" |
27 #include "core/svg/SVGAnimatedString.h" | 27 #include "core/svg/SVGAnimatedString.h" |
28 #include "core/svg/SVGElement.h" | 28 #include "core/svg/SVGElement.h" |
29 #include "core/svg/SVGURIReference.h" | 29 #include "core/svg/SVGURIReference.h" |
30 | 30 |
31 namespace blink { | 31 namespace blink { |
32 | 32 |
33 class ScriptLoader; | 33 class ScriptLoader; |
34 | 34 |
35 class SVGScriptElement FINAL | 35 class SVGScriptElement final |
36 : public SVGElement | 36 : public SVGElement |
37 , public SVGURIReference | 37 , public SVGURIReference |
38 , public ScriptLoaderClient { | 38 , public ScriptLoaderClient { |
39 DEFINE_WRAPPERTYPEINFO(); | 39 DEFINE_WRAPPERTYPEINFO(); |
40 public: | 40 public: |
41 static PassRefPtrWillBeRawPtr<SVGScriptElement> create(Document&, bool wasIn
sertedByParser); | 41 static PassRefPtrWillBeRawPtr<SVGScriptElement> create(Document&, bool wasIn
sertedByParser); |
42 | 42 |
43 ScriptLoader* loader() const { return m_loader.get(); } | 43 ScriptLoader* loader() const { return m_loader.get(); } |
44 | 44 |
45 #if ENABLE(ASSERT) | 45 #if ENABLE(ASSERT) |
46 virtual bool isAnimatableAttribute(const QualifiedName&) const OVERRIDE; | 46 virtual bool isAnimatableAttribute(const QualifiedName&) const override; |
47 #endif | 47 #endif |
48 | 48 |
49 private: | 49 private: |
50 SVGScriptElement(Document&, bool wasInsertedByParser, bool alreadyStarted); | 50 SVGScriptElement(Document&, bool wasInsertedByParser, bool alreadyStarted); |
51 virtual ~SVGScriptElement(); | 51 virtual ~SVGScriptElement(); |
52 | 52 |
53 bool isSupportedAttribute(const QualifiedName&); | 53 bool isSupportedAttribute(const QualifiedName&); |
54 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 54 virtual void parseAttribute(const QualifiedName&, const AtomicString&) overr
ide; |
55 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; | 55 virtual InsertionNotificationRequest insertedInto(ContainerNode*) override; |
56 virtual void didNotifySubtreeInsertionsToDocument() OVERRIDE; | 56 virtual void didNotifySubtreeInsertionsToDocument() override; |
57 virtual void childrenChanged(const ChildrenChange&) OVERRIDE; | 57 virtual void childrenChanged(const ChildrenChange&) override; |
58 virtual void didMoveToNewDocument(Document& oldDocument) OVERRIDE; | 58 virtual void didMoveToNewDocument(Document& oldDocument) override; |
59 | 59 |
60 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE; | 60 virtual void svgAttributeChanged(const QualifiedName&) override; |
61 virtual bool isURLAttribute(const Attribute&) const OVERRIDE; | 61 virtual bool isURLAttribute(const Attribute&) const override; |
62 virtual bool isStructurallyExternal() const OVERRIDE { return hasSourceAttri
bute(); } | 62 virtual bool isStructurallyExternal() const override { return hasSourceAttri
bute(); } |
63 virtual void finishParsingChildren() OVERRIDE; | 63 virtual void finishParsingChildren() override; |
64 | 64 |
65 virtual bool haveLoadedRequiredResources() OVERRIDE; | 65 virtual bool haveLoadedRequiredResources() override; |
66 | 66 |
67 virtual String sourceAttributeValue() const OVERRIDE; | 67 virtual String sourceAttributeValue() const override; |
68 virtual String charsetAttributeValue() const OVERRIDE; | 68 virtual String charsetAttributeValue() const override; |
69 virtual String typeAttributeValue() const OVERRIDE; | 69 virtual String typeAttributeValue() const override; |
70 virtual String languageAttributeValue() const OVERRIDE; | 70 virtual String languageAttributeValue() const override; |
71 virtual String forAttributeValue() const OVERRIDE; | 71 virtual String forAttributeValue() const override; |
72 virtual String eventAttributeValue() const OVERRIDE; | 72 virtual String eventAttributeValue() const override; |
73 virtual bool asyncAttributeValue() const OVERRIDE; | 73 virtual bool asyncAttributeValue() const override; |
74 virtual bool deferAttributeValue() const OVERRIDE; | 74 virtual bool deferAttributeValue() const override; |
75 virtual bool hasSourceAttribute() const OVERRIDE; | 75 virtual bool hasSourceAttribute() const override; |
76 | 76 |
77 virtual void dispatchLoadEvent() OVERRIDE; | 77 virtual void dispatchLoadEvent() override; |
78 | 78 |
79 virtual PassRefPtrWillBeRawPtr<Element> cloneElementWithoutAttributesAndChil
dren() OVERRIDE; | 79 virtual PassRefPtrWillBeRawPtr<Element> cloneElementWithoutAttributesAndChil
dren() override; |
80 virtual bool rendererIsNeeded(const RenderStyle&) OVERRIDE { return false; } | 80 virtual bool rendererIsNeeded(const RenderStyle&) override { return false; } |
81 | 81 |
82 virtual Timer<SVGElement>* svgLoadEventTimer() OVERRIDE { return &m_svgLoadE
ventTimer; } | 82 virtual Timer<SVGElement>* svgLoadEventTimer() override { return &m_svgLoadE
ventTimer; } |
83 | 83 |
84 | 84 |
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 } // namespace blink | 89 } // namespace blink |
90 | 90 |
91 #endif // SVGScriptElement_h | 91 #endif // SVGScriptElement_h |
OLD | NEW |