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 19 matching lines...) Expand all Loading... |
30 namespace blink { | 30 namespace blink { |
31 | 31 |
32 typedef EventSender<SVGStyleElement> SVGStyleEventSender; | 32 typedef EventSender<SVGStyleElement> SVGStyleEventSender; |
33 | 33 |
34 class SVGStyleElement final : public SVGElement | 34 class SVGStyleElement final : public SVGElement |
35 , public StyleElement { | 35 , public StyleElement { |
36 DEFINE_WRAPPERTYPEINFO(); | 36 DEFINE_WRAPPERTYPEINFO(); |
37 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(SVGStyleElement); | 37 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(SVGStyleElement); |
38 public: | 38 public: |
39 static PassRefPtrWillBeRawPtr<SVGStyleElement> create(Document&, bool create
dByParser); | 39 static PassRefPtrWillBeRawPtr<SVGStyleElement> create(Document&, bool create
dByParser); |
40 virtual ~SVGStyleElement(); | 40 ~SVGStyleElement() override; |
41 | 41 |
42 using StyleElement::sheet; | 42 using StyleElement::sheet; |
43 | 43 |
44 bool disabled() const; | 44 bool disabled() const; |
45 void setDisabled(bool); | 45 void setDisabled(bool); |
46 | 46 |
47 virtual const AtomicString& type() const override; | 47 const AtomicString& type() const override; |
48 void setType(const AtomicString&); | 48 void setType(const AtomicString&); |
49 | 49 |
50 virtual const AtomicString& media() const override; | 50 const AtomicString& media() const override; |
51 void setMedia(const AtomicString&); | 51 void setMedia(const AtomicString&); |
52 | 52 |
53 virtual String title() const override; | 53 String title() const override; |
54 void setTitle(const AtomicString&); | 54 void setTitle(const AtomicString&); |
55 | 55 |
56 void dispatchPendingEvent(SVGStyleEventSender*); | 56 void dispatchPendingEvent(SVGStyleEventSender*); |
57 | 57 |
58 DECLARE_VIRTUAL_TRACE(); | 58 DECLARE_VIRTUAL_TRACE(); |
59 | 59 |
60 private: | 60 private: |
61 SVGStyleElement(Document&, bool createdByParser); | 61 SVGStyleElement(Document&, bool createdByParser); |
62 | 62 |
63 virtual void parseAttribute(const QualifiedName&, const AtomicString&) overr
ide; | 63 void parseAttribute(const QualifiedName&, const AtomicString&) override; |
64 virtual InsertionNotificationRequest insertedInto(ContainerNode*) override; | 64 InsertionNotificationRequest insertedInto(ContainerNode*) override; |
65 virtual void didNotifySubtreeInsertionsToDocument() override; | 65 void didNotifySubtreeInsertionsToDocument() override; |
66 virtual void removedFrom(ContainerNode*) override; | 66 void removedFrom(ContainerNode*) override; |
67 virtual void childrenChanged(const ChildrenChange&) override; | 67 void childrenChanged(const ChildrenChange&) override; |
68 | 68 |
69 virtual void finishParsingChildren() override; | 69 void finishParsingChildren() override; |
70 virtual bool layoutObjectIsNeeded(const ComputedStyle&) override { return fa
lse; } | 70 bool layoutObjectIsNeeded(const ComputedStyle&) override { return false; } |
71 | 71 |
72 virtual bool sheetLoaded() override { return StyleElement::sheetLoaded(docum
ent()); } | 72 bool sheetLoaded() override { return StyleElement::sheetLoaded(document());
} |
73 virtual void notifyLoadedSheetAndAllCriticalSubresources(LoadedSheetErrorSta
tus) override; | 73 void notifyLoadedSheetAndAllCriticalSubresources(LoadedSheetErrorStatus) ove
rride; |
74 virtual void startLoadingDynamicSheet() override { StyleElement::startLoadin
gDynamicSheet(document()); } | 74 void startLoadingDynamicSheet() override { StyleElement::startLoadingDynamic
Sheet(document()); } |
75 }; | 75 }; |
76 | 76 |
77 } // namespace blink | 77 } // namespace blink |
78 | 78 |
79 #endif // SVGStyleElement_h | 79 #endif // SVGStyleElement_h |
OLD | NEW |