Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1009)

Side by Side Diff: third_party/WebKit/Source/core/svg/SVGStyleElement.h

Issue 2095243002: Remove EventSender from SVGStyleElement (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: include fix Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/svg/SVGStyleElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details. 13 * Library General Public License for more details.
14 * 14 *
15 * You should have received a copy of the GNU Library General Public License 15 * You should have received a copy of the GNU Library General Public License
16 * along with this library; see the file COPYING.LIB. If not, write to 16 * along with this library; see the file COPYING.LIB. If not, write to
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA. 18 * Boston, MA 02110-1301, USA.
19 */ 19 */
20 20
21 #ifndef SVGStyleElement_h 21 #ifndef SVGStyleElement_h
22 #define SVGStyleElement_h 22 #define SVGStyleElement_h
23 23
24 #include "core/SVGNames.h" 24 #include "core/SVGNames.h"
25 #include "core/dom/StyleElement.h" 25 #include "core/dom/StyleElement.h"
26 #include "core/events/EventSender.h"
27 #include "core/svg/SVGElement.h" 26 #include "core/svg/SVGElement.h"
28 #include "platform/heap/Handle.h" 27 #include "platform/heap/Handle.h"
29 28
30 namespace blink { 29 namespace blink {
31 30
32 using SVGStyleEventSender = EventSender<SVGStyleElement>;
33
34 class SVGStyleElement final : public SVGElement 31 class SVGStyleElement final : public SVGElement
35 , public StyleElement { 32 , public StyleElement {
36 DEFINE_WRAPPERTYPEINFO(); 33 DEFINE_WRAPPERTYPEINFO();
37 USING_GARBAGE_COLLECTED_MIXIN(SVGStyleElement); 34 USING_GARBAGE_COLLECTED_MIXIN(SVGStyleElement);
38 public: 35 public:
39 static SVGStyleElement* create(Document&, bool createdByParser); 36 static SVGStyleElement* create(Document&, bool createdByParser);
40 ~SVGStyleElement() override; 37 ~SVGStyleElement() override;
41 38
42 using StyleElement::sheet; 39 using StyleElement::sheet;
43 40
44 bool disabled() const; 41 bool disabled() const;
45 void setDisabled(bool); 42 void setDisabled(bool);
46 43
47 const AtomicString& type() const override; 44 const AtomicString& type() const override;
48 void setType(const AtomicString&); 45 void setType(const AtomicString&);
49 46
50 const AtomicString& media() const override; 47 const AtomicString& media() const override;
51 void setMedia(const AtomicString&); 48 void setMedia(const AtomicString&);
52 49
53 String title() const override; 50 String title() const override;
54 void setTitle(const AtomicString&); 51 void setTitle(const AtomicString&);
55 52
56 void dispatchPendingEvent(SVGStyleEventSender*); 53 void dispatchPendingEvent();
57 54
58 DECLARE_VIRTUAL_TRACE(); 55 DECLARE_VIRTUAL_TRACE();
59 56
60 private: 57 private:
61 SVGStyleElement(Document&, bool createdByParser); 58 SVGStyleElement(Document&, bool createdByParser);
62 59
63 void parseAttribute(const QualifiedName&, const AtomicString&, const AtomicS tring&) override; 60 void parseAttribute(const QualifiedName&, const AtomicString&, const AtomicS tring&) override;
64 InsertionNotificationRequest insertedInto(ContainerNode*) override; 61 InsertionNotificationRequest insertedInto(ContainerNode*) override;
65 void didNotifySubtreeInsertionsToDocument() override; 62 void didNotifySubtreeInsertionsToDocument() override;
66 void removedFrom(ContainerNode*) override; 63 void removedFrom(ContainerNode*) override;
67 void childrenChanged(const ChildrenChange&) override; 64 void childrenChanged(const ChildrenChange&) override;
68 65
69 void finishParsingChildren() override; 66 void finishParsingChildren() override;
70 bool layoutObjectIsNeeded(const ComputedStyle&) override { return false; } 67 bool layoutObjectIsNeeded(const ComputedStyle&) override { return false; }
71 68
72 bool sheetLoaded() override { return StyleElement::sheetLoaded(document()); } 69 bool sheetLoaded() override { return StyleElement::sheetLoaded(document()); }
73 void notifyLoadedSheetAndAllCriticalSubresources(LoadedSheetErrorStatus) ove rride; 70 void notifyLoadedSheetAndAllCriticalSubresources(LoadedSheetErrorStatus) ove rride;
74 void startLoadingDynamicSheet() override { StyleElement::startLoadingDynamic Sheet(document()); } 71 void startLoadingDynamicSheet() override { StyleElement::startLoadingDynamic Sheet(document()); }
75 }; 72 };
76 73
77 } // namespace blink 74 } // namespace blink
78 75
79 #endif // SVGStyleElement_h 76 #endif // SVGStyleElement_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/svg/SVGStyleElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698