| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005 Nikolas Zimmermann <zimmermann@kde.org> |
| 3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006, 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 20 matching lines...) Expand all Loading... |
| 31 , public StyleElement { | 31 , public StyleElement { |
| 32 public: | 32 public: |
| 33 static PassRefPtr<SVGStyleElement> create(Document&, bool createdByParser); | 33 static PassRefPtr<SVGStyleElement> create(Document&, bool createdByParser); |
| 34 virtual ~SVGStyleElement(); | 34 virtual ~SVGStyleElement(); |
| 35 | 35 |
| 36 using StyleElement::sheet; | 36 using StyleElement::sheet; |
| 37 | 37 |
| 38 bool disabled() const; | 38 bool disabled() const; |
| 39 void setDisabled(bool); | 39 void setDisabled(bool); |
| 40 | 40 |
| 41 virtual const AtomicString& type() const; | 41 virtual const AtomicString& type() const OVERRIDE; |
| 42 void setType(const AtomicString&); | 42 void setType(const AtomicString&); |
| 43 | 43 |
| 44 virtual const AtomicString& media() const; | 44 virtual const AtomicString& media() const OVERRIDE; |
| 45 void setMedia(const AtomicString&); | 45 void setMedia(const AtomicString&); |
| 46 | 46 |
| 47 virtual String title() const; | 47 virtual String title() const OVERRIDE; |
| 48 void setTitle(const AtomicString&); | 48 void setTitle(const AtomicString&); |
| 49 | 49 |
| 50 private: | 50 private: |
| 51 SVGStyleElement(Document&, bool createdByParser); | 51 SVGStyleElement(Document&, bool createdByParser); |
| 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 removedFrom(ContainerNode*) OVERRIDE; | 57 virtual void removedFrom(ContainerNode*) OVERRIDE; |
| 58 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang
e = 0, Node* afterChange = 0, int childCountDelta = 0); | 58 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang
e = 0, Node* afterChange = 0, int childCountDelta = 0) OVERRIDE; |
| 59 | 59 |
| 60 virtual void finishParsingChildren(); | 60 virtual void finishParsingChildren() OVERRIDE; |
| 61 virtual bool rendererIsNeeded(const RenderStyle&) OVERRIDE { return false; } | 61 virtual bool rendererIsNeeded(const RenderStyle&) OVERRIDE { return false; } |
| 62 | 62 |
| 63 virtual bool isLoading() const { return StyleElement::isLoading(); } | 63 virtual bool sheetLoaded() OVERRIDE { return StyleElement::sheetLoaded(docum
ent()); } |
| 64 virtual bool sheetLoaded() { return StyleElement::sheetLoaded(document()); } | 64 virtual void startLoadingDynamicSheet() OVERRIDE { StyleElement::startLoadin
gDynamicSheet(document()); } |
| 65 virtual void startLoadingDynamicSheet() { StyleElement::startLoadingDynamicS
heet(document()); } | |
| 66 virtual Timer<SVGElement>* svgLoadEventTimer() OVERRIDE { return &m_svgLoadE
ventTimer; } | 65 virtual Timer<SVGElement>* svgLoadEventTimer() OVERRIDE { return &m_svgLoadE
ventTimer; } |
| 67 | 66 |
| 68 Timer<SVGElement> m_svgLoadEventTimer; | 67 Timer<SVGElement> m_svgLoadEventTimer; |
| 69 }; | 68 }; |
| 70 | 69 |
| 71 DEFINE_NODE_TYPE_CASTS(SVGStyleElement, hasTagName(SVGNames::styleTag)); | 70 DEFINE_NODE_TYPE_CASTS(SVGStyleElement, hasTagName(SVGNames::styleTag)); |
| 72 | 71 |
| 73 } // namespace WebCore | 72 } // namespace WebCore |
| 74 | 73 |
| 75 #endif // SVGStyleElement_h | 74 #endif // SVGStyleElement_h |
| OLD | NEW |