OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> |
3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> |
4 * Copyright (C) 2005 Eric Seidel <eric@webkit.org> | 4 * Copyright (C) 2005 Eric Seidel <eric@webkit.org> |
5 * Copyright (C) 2006 Apple Computer, Inc | 5 * Copyright (C) 2006 Apple Computer, Inc |
6 * Copyright (C) 2009 Google, Inc. | 6 * Copyright (C) 2009 Google, Inc. |
7 * Copyright (C) 2011 Renata Hodovan <reni@webkit.org> | 7 * Copyright (C) 2011 Renata Hodovan <reni@webkit.org> |
8 * Copyright (C) 2011 University of Szeged | 8 * Copyright (C) 2011 University of Szeged |
9 * | 9 * |
10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
(...skipping 17 matching lines...) Expand all Loading... |
28 | 28 |
29 #include "core/rendering/svg/RenderSVGShape.h" | 29 #include "core/rendering/svg/RenderSVGShape.h" |
30 | 30 |
31 namespace WebCore { | 31 namespace WebCore { |
32 | 32 |
33 class RenderSVGPath FINAL : public RenderSVGShape { | 33 class RenderSVGPath FINAL : public RenderSVGShape { |
34 public: | 34 public: |
35 explicit RenderSVGPath(SVGGraphicsElement*); | 35 explicit RenderSVGPath(SVGGraphicsElement*); |
36 virtual ~RenderSVGPath(); | 36 virtual ~RenderSVGPath(); |
37 | 37 |
| 38 virtual bool isRenderingDisabled() const OVERRIDE; |
| 39 |
38 private: | 40 private: |
39 virtual bool isSVGPath() const OVERRIDE { return true; } | 41 virtual bool isSVGPath() const OVERRIDE { return true; } |
40 virtual const char* renderName() const OVERRIDE { return "RenderSVGPath"; } | 42 virtual const char* renderName() const OVERRIDE { return "RenderSVGPath"; } |
41 | 43 |
42 virtual void updateShapeFromElement() OVERRIDE; | 44 virtual void updateShapeFromElement() OVERRIDE; |
43 FloatRect calculateUpdatedStrokeBoundingBox() const; | 45 FloatRect calculateUpdatedStrokeBoundingBox() const; |
44 | 46 |
45 virtual void strokeShape(GraphicsContext*) const OVERRIDE; | 47 virtual void strokeShape(GraphicsContext*) const OVERRIDE; |
46 virtual bool shapeDependentStrokeContains(const FloatPoint&) OVERRIDE; | 48 virtual bool shapeDependentStrokeContains(const FloatPoint&) OVERRIDE; |
47 | 49 |
48 bool shouldStrokeZeroLengthSubpath() const; | 50 bool shouldStrokeZeroLengthSubpath() const; |
49 Path* zeroLengthLinecapPath(const FloatPoint&) const; | 51 Path* zeroLengthLinecapPath(const FloatPoint&) const; |
50 FloatRect zeroLengthSubpathRect(const FloatPoint&, float) const; | 52 FloatRect zeroLengthSubpathRect(const FloatPoint&, float) const; |
51 void updateZeroLengthSubpaths(); | 53 void updateZeroLengthSubpaths(); |
52 | 54 |
53 Vector<FloatPoint> m_zeroLengthLinecapLocations; | 55 Vector<FloatPoint> m_zeroLengthLinecapLocations; |
54 }; | 56 }; |
55 | 57 |
56 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGPath, isSVGPath()); | 58 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGPath, isSVGPath()); |
57 | 59 |
58 } | 60 } |
59 | 61 |
60 #endif | 62 #endif |
OLD | NEW |