From 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Tue, 27 Jun 2017 06:07:23 +0000 Subject: webkitgtk-2.16.5 --- Source/WebCore/rendering/svg/RenderSVGPath.h | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) (limited to 'Source/WebCore/rendering/svg/RenderSVGPath.h') 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 * Copyright (C) 2004, 2005 Rob Buis * Copyright (C) 2005 Eric Seidel - * Copyright (C) 2006 Apple Computer, Inc + * Copyright (C) 2006 Apple Inc. * Copyright (C) 2009 Google, Inc. * Copyright (C) 2011 Renata Hodovan * 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); + 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 m_zeroLengthLinecapLocations; }; -RENDER_OBJECT_TYPE_CASTS(RenderSVGPath, isSVGPath()) - -} +} // namespace WebCore -#endif // ENABLE(SVG) -#endif +SPECIALIZE_TYPE_TRAITS_RENDER_OBJECT(RenderSVGPath, isSVGPath()) -- cgit v1.2.1