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 11 matching lines...) Expand all Loading... |
22 #define SVGStyleElement_h | 22 #define SVGStyleElement_h |
23 | 23 |
24 #include "core/dom/StyleElement.h" | 24 #include "core/dom/StyleElement.h" |
25 #include "core/svg/SVGElement.h" | 25 #include "core/svg/SVGElement.h" |
26 | 26 |
27 namespace WebCore { | 27 namespace WebCore { |
28 | 28 |
29 class SVGStyleElement FINAL : public SVGElement | 29 class SVGStyleElement FINAL : public SVGElement |
30 , public StyleElement { | 30 , public StyleElement { |
31 public: | 31 public: |
32 static PassRefPtr<SVGStyleElement> create(const QualifiedName&, Document*, b
ool createdByParser); | 32 static PassRefPtr<SVGStyleElement> create(const QualifiedName&, Document&, b
ool createdByParser); |
33 virtual ~SVGStyleElement(); | 33 virtual ~SVGStyleElement(); |
34 | 34 |
35 using StyleElement::sheet; | 35 using StyleElement::sheet; |
36 | 36 |
37 bool disabled() const; | 37 bool disabled() const; |
38 void setDisabled(bool); | 38 void setDisabled(bool); |
39 | 39 |
40 virtual const AtomicString& type() const; | 40 virtual const AtomicString& type() const; |
41 void setType(const AtomicString&); | 41 void setType(const AtomicString&); |
42 | 42 |
43 virtual const AtomicString& media() const; | 43 virtual const AtomicString& media() const; |
44 void setMedia(const AtomicString&); | 44 void setMedia(const AtomicString&); |
45 | 45 |
46 virtual String title() const; | 46 virtual String title() const; |
47 void setTitle(const AtomicString&); | 47 void setTitle(const AtomicString&); |
48 | 48 |
49 private: | 49 private: |
50 SVGStyleElement(const QualifiedName&, Document*, bool createdByParser); | 50 SVGStyleElement(const QualifiedName&, Document&, bool createdByParser); |
51 | 51 |
52 bool isSupportedAttribute(const QualifiedName&); | 52 bool isSupportedAttribute(const QualifiedName&); |
53 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 53 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; |
54 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; | 54 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; |
55 virtual void didNotifySubtreeInsertions(ContainerNode*) OVERRIDE; | 55 virtual void didNotifySubtreeInsertions(ContainerNode*) OVERRIDE; |
56 virtual void removedFrom(ContainerNode*) OVERRIDE; | 56 virtual void removedFrom(ContainerNode*) OVERRIDE; |
57 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang
e = 0, Node* afterChange = 0, int childCountDelta = 0); | 57 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang
e = 0, Node* afterChange = 0, int childCountDelta = 0); |
58 | 58 |
59 virtual void finishParsingChildren(); | 59 virtual void finishParsingChildren(); |
60 virtual bool rendererIsNeeded(const NodeRenderingContext&) OVERRIDE { return
false; } | 60 virtual bool rendererIsNeeded(const NodeRenderingContext&) OVERRIDE { return
false; } |
61 | 61 |
62 virtual bool isLoading() const { return StyleElement::isLoading(); } | 62 virtual bool isLoading() const { return StyleElement::isLoading(); } |
63 virtual bool sheetLoaded() { return StyleElement::sheetLoaded(document()); } | 63 virtual bool sheetLoaded() { return StyleElement::sheetLoaded(document()); } |
64 virtual void startLoadingDynamicSheet() { StyleElement::startLoadingDynamicS
heet(document()); } | 64 virtual void startLoadingDynamicSheet() { StyleElement::startLoadingDynamicS
heet(document()); } |
65 virtual Timer<SVGElement>* svgLoadEventTimer() OVERRIDE { return &m_svgLoadE
ventTimer; } | 65 virtual Timer<SVGElement>* svgLoadEventTimer() OVERRIDE { return &m_svgLoadE
ventTimer; } |
66 | 66 |
67 Timer<SVGElement> m_svgLoadEventTimer; | 67 Timer<SVGElement> m_svgLoadEventTimer; |
68 }; | 68 }; |
69 | 69 |
70 } // namespace WebCore | 70 } // namespace WebCore |
71 | 71 |
72 #endif // SVGStyleElement_h | 72 #endif // SVGStyleElement_h |
OLD | NEW |