| 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 27 matching lines...) Expand all Loading... |
| 38 , public SVGURIReference | 38 , public SVGURIReference |
| 39 , public ScriptLoaderClient { | 39 , public ScriptLoaderClient { |
| 40 DEFINE_WRAPPERTYPEINFO(); | 40 DEFINE_WRAPPERTYPEINFO(); |
| 41 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(SVGScriptElement); | 41 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(SVGScriptElement); |
| 42 public: | 42 public: |
| 43 static PassRefPtrWillBeRawPtr<SVGScriptElement> create(Document&, bool wasIn
sertedByParser); | 43 static PassRefPtrWillBeRawPtr<SVGScriptElement> create(Document&, bool wasIn
sertedByParser); |
| 44 | 44 |
| 45 ScriptLoader* loader() const { return m_loader.get(); } | 45 ScriptLoader* loader() const { return m_loader.get(); } |
| 46 | 46 |
| 47 #if ENABLE(ASSERT) | 47 #if ENABLE(ASSERT) |
| 48 virtual bool isAnimatableAttribute(const QualifiedName&) const override; | 48 bool isAnimatableAttribute(const QualifiedName&) const override; |
| 49 #endif | 49 #endif |
| 50 | 50 |
| 51 DECLARE_VIRTUAL_TRACE(); | 51 DECLARE_VIRTUAL_TRACE(); |
| 52 | 52 |
| 53 private: | 53 private: |
| 54 SVGScriptElement(Document&, bool wasInsertedByParser, bool alreadyStarted); | 54 SVGScriptElement(Document&, bool wasInsertedByParser, bool alreadyStarted); |
| 55 | 55 |
| 56 virtual void parseAttribute(const QualifiedName&, const AtomicString&) overr
ide; | 56 void parseAttribute(const QualifiedName&, const AtomicString&) override; |
| 57 virtual InsertionNotificationRequest insertedInto(ContainerNode*) override; | 57 InsertionNotificationRequest insertedInto(ContainerNode*) override; |
| 58 virtual void didNotifySubtreeInsertionsToDocument() override; | 58 void didNotifySubtreeInsertionsToDocument() override; |
| 59 virtual void childrenChanged(const ChildrenChange&) override; | 59 void childrenChanged(const ChildrenChange&) override; |
| 60 virtual void didMoveToNewDocument(Document& oldDocument) override; | 60 void didMoveToNewDocument(Document& oldDocument) override; |
| 61 | 61 |
| 62 virtual void svgAttributeChanged(const QualifiedName&) override; | 62 void svgAttributeChanged(const QualifiedName&) override; |
| 63 virtual bool isURLAttribute(const Attribute&) const override; | 63 bool isURLAttribute(const Attribute&) const override; |
| 64 virtual bool isStructurallyExternal() const override { return hasSourceAttri
bute(); } | 64 bool isStructurallyExternal() const override { return hasSourceAttribute();
} |
| 65 virtual void finishParsingChildren() override; | 65 void finishParsingChildren() override; |
| 66 | 66 |
| 67 virtual bool haveLoadedRequiredResources() override; | 67 bool haveLoadedRequiredResources() override; |
| 68 | 68 |
| 69 virtual String sourceAttributeValue() const override; | 69 String sourceAttributeValue() const override; |
| 70 virtual String charsetAttributeValue() const override; | 70 String charsetAttributeValue() const override; |
| 71 virtual String typeAttributeValue() const override; | 71 String typeAttributeValue() const override; |
| 72 virtual String languageAttributeValue() const override; | 72 String languageAttributeValue() const override; |
| 73 virtual String forAttributeValue() const override; | 73 String forAttributeValue() const override; |
| 74 virtual String eventAttributeValue() const override; | 74 String eventAttributeValue() const override; |
| 75 virtual bool asyncAttributeValue() const override; | 75 bool asyncAttributeValue() const override; |
| 76 virtual bool deferAttributeValue() const override; | 76 bool deferAttributeValue() const override; |
| 77 virtual bool hasSourceAttribute() const override; | 77 bool hasSourceAttribute() const override; |
| 78 | 78 |
| 79 virtual void dispatchLoadEvent() override; | 79 void dispatchLoadEvent() override; |
| 80 | 80 |
| 81 virtual PassRefPtrWillBeRawPtr<Element> cloneElementWithoutAttributesAndChil
dren() override; | 81 PassRefPtrWillBeRawPtr<Element> cloneElementWithoutAttributesAndChildren() o
verride; |
| 82 virtual bool layoutObjectIsNeeded(const ComputedStyle&) override { return fa
lse; } | 82 bool layoutObjectIsNeeded(const ComputedStyle&) override { return false; } |
| 83 | 83 |
| 84 OwnPtrWillBeMember<ScriptLoader> m_loader; | 84 OwnPtrWillBeMember<ScriptLoader> m_loader; |
| 85 }; | 85 }; |
| 86 | 86 |
| 87 } // namespace blink | 87 } // namespace blink |
| 88 | 88 |
| 89 #endif // SVGScriptElement_h | 89 #endif // SVGScriptElement_h |
| OLD | NEW |