diff options
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()) |