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 22 matching lines...) Expand all Loading... |
33 #include <wtf/OwnPtr.h> | 33 #include <wtf/OwnPtr.h> |
34 #include <wtf/Vector.h> | 34 #include <wtf/Vector.h> |
35 | 35 |
36 namespace WebCore { | 36 namespace WebCore { |
37 | 37 |
38 class FloatPoint; | 38 class FloatPoint; |
39 class GraphicsContextStateSaver; | 39 class GraphicsContextStateSaver; |
40 class RenderSVGContainer; | 40 class RenderSVGContainer; |
41 class RenderSVGPath; | 41 class RenderSVGPath; |
42 class RenderSVGResource; | 42 class RenderSVGResource; |
43 class SVGStyledTransformableElement; | 43 class SVGGraphicsElement; |
44 | 44 |
45 class RenderSVGShape : public RenderSVGModelObject { | 45 class RenderSVGShape : public RenderSVGModelObject { |
46 public: | 46 public: |
47 explicit RenderSVGShape(SVGStyledTransformableElement*); | 47 explicit RenderSVGShape(SVGGraphicsElement*); |
48 RenderSVGShape(SVGStyledTransformableElement*, Path*, bool); | 48 RenderSVGShape(SVGGraphicsElement*, Path*, bool); |
49 virtual ~RenderSVGShape(); | 49 virtual ~RenderSVGShape(); |
50 | 50 |
51 void setNeedsShapeUpdate() { m_needsShapeUpdate = true; } | 51 void setNeedsShapeUpdate() { m_needsShapeUpdate = true; } |
52 virtual void setNeedsBoundariesUpdate() OVERRIDE FINAL { m_needsBoundariesUp
date = true; } | 52 virtual void setNeedsBoundariesUpdate() OVERRIDE FINAL { m_needsBoundariesUp
date = true; } |
53 virtual bool needsBoundariesUpdate() OVERRIDE FINAL { return m_needsBoundari
esUpdate; } | 53 virtual bool needsBoundariesUpdate() OVERRIDE FINAL { return m_needsBoundari
esUpdate; } |
54 virtual void setNeedsTransformUpdate() OVERRIDE FINAL { m_needsTransformUpda
te = true; } | 54 virtual void setNeedsTransformUpdate() OVERRIDE FINAL { m_needsTransformUpda
te = true; } |
55 virtual void fillShape(GraphicsContext*) const; | 55 virtual void fillShape(GraphicsContext*) const; |
56 virtual void strokeShape(GraphicsContext*) const; | 56 virtual void strokeShape(GraphicsContext*) const; |
57 | 57 |
58 Path& path() const | 58 Path& path() const |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isSVGShape()); | 136 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isSVGShape()); |
137 return static_cast<const RenderSVGShape*>(object); | 137 return static_cast<const RenderSVGShape*>(object); |
138 } | 138 } |
139 | 139 |
140 // This will catch anyone doing an unnecessary cast. | 140 // This will catch anyone doing an unnecessary cast. |
141 void toRenderSVGShape(const RenderSVGShape*); | 141 void toRenderSVGShape(const RenderSVGShape*); |
142 | 142 |
143 } | 143 } |
144 | 144 |
145 #endif | 145 #endif |
OLD | NEW |