diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
commit | 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch) | |
tree | 46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebCore/rendering/svg/RenderSVGPath.h | |
parent | 32761a6cee1d0dee366b885b7b9c777e67885688 (diff) | |
download | WebKitGtk-tarball-master.tar.gz |
webkitgtk-2.16.5HEADwebkitgtk-2.16.5master
Diffstat (limited to 'Source/WebCore/rendering/svg/RenderSVGPath.h')
-rw-r--r-- | Source/WebCore/rendering/svg/RenderSVGPath.h | 27 |
1 files changed, 12 insertions, 15 deletions
diff --git a/Source/WebCore/rendering/svg/RenderSVGPath.h b/Source/WebCore/rendering/svg/RenderSVGPath.h index 5ffd494f4..6b69e23f9 100644 --- a/Source/WebCore/rendering/svg/RenderSVGPath.h +++ b/Source/WebCore/rendering/svg/RenderSVGPath.h @@ -2,7 +2,7 @@ * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> * Copyright (C) 2005 Eric Seidel <eric@webkit.org> - * Copyright (C) 2006 Apple Computer, Inc + * Copyright (C) 2006 Apple Inc. * Copyright (C) 2009 Google, Inc. * Copyright (C) 2011 Renata Hodovan <reni@webkit.org> * Copyright (C) 2011 University of Szeged @@ -23,40 +23,37 @@ * Boston, MA 02110-1301, USA. */ -#ifndef RenderSVGPath_h -#define RenderSVGPath_h +#pragma once -#if ENABLE(SVG) #include "RenderSVGShape.h" namespace WebCore { class RenderSVGPath final : public RenderSVGShape { public: - RenderSVGPath(SVGGraphicsElement&, PassRef<RenderStyle>); + RenderSVGPath(SVGGraphicsElement&, RenderStyle&&); virtual ~RenderSVGPath(); private: - virtual bool isSVGPath() const override { return true; } - virtual const char* renderName() const { return "RenderSVGPath"; } + bool isSVGPath() const override { return true; } + const char* renderName() const override { return "RenderSVGPath"; } - virtual void updateShapeFromElement() override; + void updateShapeFromElement() override; FloatRect calculateUpdatedStrokeBoundingBox() const; - virtual void strokeShape(GraphicsContext*) const override; - virtual bool shapeDependentStrokeContains(const FloatPoint&) override; + void strokeShape(GraphicsContext&) const override; + bool shapeDependentStrokeContains(const FloatPoint&) override; bool shouldStrokeZeroLengthSubpath() const; Path* zeroLengthLinecapPath(const FloatPoint&) const; FloatRect zeroLengthSubpathRect(const FloatPoint&, float) const; void updateZeroLengthSubpaths(); + bool isRenderingDisabled() const override; + Vector<FloatPoint> m_zeroLengthLinecapLocations; }; -RENDER_OBJECT_TYPE_CASTS(RenderSVGPath, isSVGPath()) - -} +} // namespace WebCore -#endif // ENABLE(SVG) -#endif +SPECIALIZE_TYPE_TRAITS_RENDER_OBJECT(RenderSVGPath, isSVGPath()) |