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

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

Issue 2360383003: Make SVG*StringList and SVGStringListTearOff scarcer (Closed)
Patch Set: Created 4 years, 3 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2005, 2008 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2008 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2007 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 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 SVGViewElement_h 21 #ifndef SVGViewElement_h
22 #define SVGViewElement_h 22 #define SVGViewElement_h
23 23
24 #include "core/SVGNames.h"
25 #include "core/svg/SVGAnimatedBoolean.h"
26 #include "core/svg/SVGElement.h" 24 #include "core/svg/SVGElement.h"
27 #include "core/svg/SVGFitToViewBox.h" 25 #include "core/svg/SVGFitToViewBox.h"
28 #include "core/svg/SVGStaticStringList.h"
29 #include "core/svg/SVGZoomAndPan.h" 26 #include "core/svg/SVGZoomAndPan.h"
30 #include "platform/heap/Handle.h" 27 #include "platform/heap/Handle.h"
31 28
32 namespace blink { 29 namespace blink {
33 30
31 class SVGStaticStringList;
32 class SVGStringListTearOff;
33
34 class SVGViewElement final : public SVGElement, 34 class SVGViewElement final : public SVGElement,
35 public SVGFitToViewBox, 35 public SVGFitToViewBox,
36 public SVGZoomAndPan { 36 public SVGZoomAndPan {
37 DEFINE_WRAPPERTYPEINFO(); 37 DEFINE_WRAPPERTYPEINFO();
38 USING_GARBAGE_COLLECTED_MIXIN(SVGViewElement); 38 USING_GARBAGE_COLLECTED_MIXIN(SVGViewElement);
39 public: 39 public:
40 DECLARE_NODE_FACTORY(SVGViewElement); 40 DECLARE_NODE_FACTORY(SVGViewElement);
41 41
42 SVGStringListTearOff* viewTarget() { return m_viewTarget->tearOff(); } 42 SVGStringListTearOff* viewTarget();
43 43
44 DECLARE_VIRTUAL_TRACE(); 44 DECLARE_VIRTUAL_TRACE();
45 45
46 private: 46 private:
47 explicit SVGViewElement(Document&); 47 explicit SVGViewElement(Document&);
48 48
49 void parseAttribute(const QualifiedName&, const AtomicString&, const AtomicS tring&) override; 49 void parseAttribute(const QualifiedName&, const AtomicString&, const AtomicS tring&) override;
50 50
51 bool layoutObjectIsNeeded(const ComputedStyle&) override { return false; } 51 bool layoutObjectIsNeeded(const ComputedStyle&) override { return false; }
52 52
53 Member<SVGStaticStringList> m_viewTarget; 53 Member<SVGStaticStringList> m_viewTarget;
54 }; 54 };
55 55
56 } // namespace blink 56 } // namespace blink
57 57
58 #endif // SVGViewElement_h 58 #endif // SVGViewElement_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGTests.cpp ('k') | third_party/WebKit/Source/core/svg/SVGViewElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698