Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / Source / core / svg / SVGPathSegClosePath.h
blob8a50e36ffc96c6cb0f0a15f0fec47ff31255aac1
1 /*
2 * Copyright (C) 2004, 2005, 2006 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org>
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.
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.
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.
21 #ifndef SVGPathSegClosePath_h
22 #define SVGPathSegClosePath_h
24 #include "core/svg/SVGPathSeg.h"
26 namespace blink {
28 class SVGPathSegClosePath final : public SVGPathSeg {
29 DEFINE_WRAPPERTYPEINFO();
30 public:
31 static PassRefPtrWillBeRawPtr<SVGPathSegClosePath> create(SVGPathElement* element)
33 return adoptRefWillBeNoop(new SVGPathSegClosePath(element));
36 PassRefPtrWillBeRawPtr<SVGPathSeg> clone() override
38 return adoptRefWillBeNoop(new SVGPathSegClosePath(nullptr));
41 private:
42 SVGPathSegClosePath(SVGPathElement* element)
43 : SVGPathSeg(element) { }
45 unsigned short pathSegType() const override { return PATHSEG_CLOSEPATH; }
46 String pathSegTypeAsLetter() const override { return "Z"; }
49 } // namespace blink
51 #endif // SVGPathSegClosePath_h