| 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 12 matching lines...) Expand all Loading... |
| 23 | 23 |
| 24 #include "SVGNames.h" | 24 #include "SVGNames.h" |
| 25 #include "core/dom/StyleElement.h" | 25 #include "core/dom/StyleElement.h" |
| 26 #include "core/svg/SVGElement.h" | 26 #include "core/svg/SVGElement.h" |
| 27 | 27 |
| 28 namespace WebCore { | 28 namespace WebCore { |
| 29 | 29 |
| 30 class SVGStyleElement FINAL : public SVGElement | 30 class SVGStyleElement FINAL : public SVGElement |
| 31 , public StyleElement { | 31 , public StyleElement { |
| 32 public: | 32 public: |
| 33 static PassRefPtr<SVGStyleElement> create(const QualifiedName&, Document&, b
ool 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; |
| 42 void setType(const AtomicString&); | 42 void setType(const AtomicString&); |
| 43 | 43 |
| 44 virtual const AtomicString& media() const; | 44 virtual const AtomicString& media() const; |
| 45 void setMedia(const AtomicString&); | 45 void setMedia(const AtomicString&); |
| 46 | 46 |
| 47 virtual String title() const; | 47 virtual String title() const; |
| 48 void setTitle(const AtomicString&); | 48 void setTitle(const AtomicString&); |
| 49 | 49 |
| 50 private: | 50 private: |
| 51 SVGStyleElement(const QualifiedName&, 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); |
| 59 | 59 |
| 60 virtual void finishParsingChildren(); | 60 virtual void finishParsingChildren(); |
| 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 isLoading() const { return StyleElement::isLoading(); } |
| 64 virtual bool sheetLoaded() { return StyleElement::sheetLoaded(document()); } | 64 virtual bool sheetLoaded() { return StyleElement::sheetLoaded(document()); } |
| 65 virtual void startLoadingDynamicSheet() { StyleElement::startLoadingDynamicS
heet(document()); } | 65 virtual void startLoadingDynamicSheet() { StyleElement::startLoadingDynamicS
heet(document()); } |
| 66 virtual Timer<SVGElement>* svgLoadEventTimer() OVERRIDE { return &m_svgLoadE
ventTimer; } | 66 virtual Timer<SVGElement>* svgLoadEventTimer() OVERRIDE { return &m_svgLoadE
ventTimer; } |
| 67 | 67 |
| 68 Timer<SVGElement> m_svgLoadEventTimer; | 68 Timer<SVGElement> m_svgLoadEventTimer; |
| 69 }; | 69 }; |
| 70 | 70 |
| 71 DEFINE_NODE_TYPE_CASTS(SVGStyleElement, hasTagName(SVGNames::styleTag)); | 71 DEFINE_NODE_TYPE_CASTS(SVGStyleElement, hasTagName(SVGNames::styleTag)); |
| 72 | 72 |
| 73 } // namespace WebCore | 73 } // namespace WebCore |
| 74 | 74 |
| 75 #endif // SVGStyleElement_h | 75 #endif // SVGStyleElement_h |
| OLD | NEW |