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

Side by Side Diff: Source/core/svg/SVGGeometryElement.h

Issue 62943002: Implement SVGGeometryElement (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Update copyrights Created 7 years, 1 month 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, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2013 Samsung Electronics. All rights reserved.
3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org>
4 * 3 *
5 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
9 * 8 *
10 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details. 12 * Library General Public License for more details.
14 * 13 *
15 * You should have received a copy of the GNU Library General Public License 14 * 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 15 * along with this library; see the file COPYING.LIB. If not, write to
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA. 17 * Boston, MA 02110-1301, USA.
19 */ 18 */
20 19
21 #ifndef SVGPointList_h 20 #ifndef SVGGeometryElement_h
22 #define SVGPointList_h 21 #define SVGGeometryElement_h
23 22
23 #include "core/svg/SVGGraphicsElement.h"
24 #include "core/svg/SVGPoint.h" 24 #include "core/svg/SVGPoint.h"
25 #include "core/svg/properties/SVGPropertyTraits.h"
26 #include "wtf/Vector.h"
27 25
28 namespace WebCore { 26 namespace WebCore {
29 27
30 class SVGPointList : public Vector<SVGPoint> { 28 class SVGGeometryElement : public SVGGraphicsElement {
31 public: 29 public:
32 SVGPointList() { } 30 virtual ~SVGGeometryElement();
pdr. 2013/11/09 00:20:08 Is this needed?
33 31
34 String valueAsString() const; 32 bool isPointInFill(const SVGPoint&) const;
35 }; 33 bool isPointInStroke(const SVGPoint&) const;
36 34
37 template<> 35 protected:
38 struct SVGPropertyTraits<SVGPointList> { 36 SVGGeometryElement(const QualifiedName&, Document&, ConstructionType = Creat eSVGElement);
39 static SVGPointList initialValue() { return SVGPointList(); }
40 typedef SVGPoint ListItemType;
41 }; 37 };
42 38
43 } // namespace WebCore 39 } // namespace WebCore
44 40
45 #endif 41 #endif // SVGGraphicsElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698