Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / Source / core / layout / svg / LayoutSVGPath.h
blob2231bf07ffcf2936dfa63cc5b36fd732c0c2bc49
1 /*
2 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org>
4 * Copyright (C) 2005 Eric Seidel <eric@webkit.org>
5 * Copyright (C) 2006 Apple Computer, Inc
6 * Copyright (C) 2009 Google, Inc.
7 * Copyright (C) 2011 Renata Hodovan <reni@webkit.org>
8 * Copyright (C) 2011 University of Szeged
10 * This library is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU Library General Public
12 * License as published by the Free Software Foundation; either
13 * version 2 of the License, or (at your option) any later version.
15 * This library is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 * Library General Public License for more details.
20 * You should have received a copy of the GNU Library General Public License
21 * along with this library; see the file COPYING.LIB. If not, write to
22 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
23 * Boston, MA 02110-1301, USA.
26 #ifndef LayoutSVGPath_h
27 #define LayoutSVGPath_h
29 #include "core/layout/svg/LayoutSVGShape.h"
31 namespace blink {
33 class LayoutSVGPath final : public LayoutSVGShape {
34 public:
35 explicit LayoutSVGPath(SVGGeometryElement*);
36 ~LayoutSVGPath() override;
38 const Vector<MarkerPosition>* markerPositions() const override { return &m_markerPositions; }
40 const char* name() const override { return "LayoutSVGPath"; }
42 private:
43 void updateShapeFromElement() override;
44 FloatRect hitTestStrokeBoundingBox() const override;
45 FloatRect calculateUpdatedStrokeBoundingBox() const;
47 FloatRect markerRect(float strokeWidth) const;
48 bool shouldGenerateMarkerPositions() const;
49 void processMarkerPositions();
51 Vector<MarkerPosition> m_markerPositions;
56 #endif