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

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

Issue 2522443002: Remove SVGCursorElement (Closed)
Patch Set: Rebase Created 4 years 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
OLDNEW
(Empty)
1 /*
2 * Copyright (C) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org>
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details.
14 *
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
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA.
19 */
20
21 #ifndef SVGCursorElement_h
22 #define SVGCursorElement_h
23
24 #include "core/SVGNames.h"
25 #include "core/svg/SVGAnimatedLength.h"
26 #include "core/svg/SVGElement.h"
27 #include "core/svg/SVGTests.h"
28 #include "core/svg/SVGURIReference.h"
29 #include "platform/heap/Handle.h"
30
31 namespace blink {
32
33 class SVGCursorElement final : public SVGElement,
34 public SVGTests,
35 public SVGURIReference {
36 DEFINE_WRAPPERTYPEINFO();
37 USING_GARBAGE_COLLECTED_MIXIN(SVGCursorElement);
38
39 public:
40 DECLARE_NODE_FACTORY(SVGCursorElement);
41
42 ~SVGCursorElement() override;
43
44 void addClient(SVGElement*);
45 void removeReferencedElement(SVGElement*);
46
47 SVGAnimatedLength* x() const { return m_x.get(); }
48 SVGAnimatedLength* y() const { return m_y.get(); }
49
50 DECLARE_VIRTUAL_TRACE();
51
52 private:
53 explicit SVGCursorElement(Document&);
54
55 bool isValid() const override { return SVGTests::isValid(); }
56
57 void svgAttributeChanged(const QualifiedName&) override;
58
59 bool layoutObjectIsNeeded(const ComputedStyle&) override { return false; }
60
61 Member<SVGAnimatedLength> m_x;
62 Member<SVGAnimatedLength> m_y;
63
64 HeapHashSet<WeakMember<SVGElement>> m_clients;
65 };
66
67 } // namespace blink
68
69 #endif // SVGCursorElement_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/svg/BUILD.gn ('k') | third_party/WebKit/Source/core/svg/SVGCursorElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698