| 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 19 matching lines...) Expand all Loading... |
| 30 #include "core/rendering/svg/SVGMarkerData.h" | 30 #include "core/rendering/svg/SVGMarkerData.h" |
| 31 #include "platform/geometry/FloatRect.h" | 31 #include "platform/geometry/FloatRect.h" |
| 32 #include "platform/transforms/AffineTransform.h" | 32 #include "platform/transforms/AffineTransform.h" |
| 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 PointerEventsHitRules; |
| 40 class RenderSVGContainer; | 41 class RenderSVGContainer; |
| 41 class RenderSVGPath; | 42 class RenderSVGPath; |
| 42 class RenderSVGResource; | 43 class RenderSVGResource; |
| 43 class SVGGraphicsElement; | 44 class SVGGraphicsElement; |
| 44 | 45 |
| 45 class RenderSVGShape : public RenderSVGModelObject { | 46 class RenderSVGShape : public RenderSVGModelObject { |
| 46 public: | 47 public: |
| 47 explicit RenderSVGShape(SVGGraphicsElement*); | 48 explicit RenderSVGShape(SVGGraphicsElement*); |
| 48 RenderSVGShape(SVGGraphicsElement*, Path*, bool); | 49 RenderSVGShape(SVGGraphicsElement*, Path*, bool); |
| 49 virtual ~RenderSVGShape(); | 50 virtual ~RenderSVGShape(); |
| 50 | 51 |
| 51 void setNeedsShapeUpdate() { m_needsShapeUpdate = true; } | 52 void setNeedsShapeUpdate() { m_needsShapeUpdate = true; } |
| 52 virtual void setNeedsBoundariesUpdate() OVERRIDE FINAL { m_needsBoundariesUp
date = true; } | 53 virtual void setNeedsBoundariesUpdate() OVERRIDE FINAL { m_needsBoundariesUp
date = true; } |
| 53 virtual bool needsBoundariesUpdate() OVERRIDE FINAL { return m_needsBoundari
esUpdate; } | 54 virtual bool needsBoundariesUpdate() OVERRIDE FINAL { return m_needsBoundari
esUpdate; } |
| 54 virtual void setNeedsTransformUpdate() OVERRIDE FINAL { m_needsTransformUpda
te = true; } | 55 virtual void setNeedsTransformUpdate() OVERRIDE FINAL { m_needsTransformUpda
te = true; } |
| 55 virtual void fillShape(GraphicsContext*) const; | 56 virtual void fillShape(GraphicsContext*) const; |
| 56 virtual void strokeShape(GraphicsContext*) const; | 57 virtual void strokeShape(GraphicsContext*) const; |
| 57 | 58 |
| 59 bool nodeAtFloatPointInternal(const HitTestRequest&, const FloatPoint&, Poin
terEventsHitRules); |
| 60 |
| 58 Path& path() const | 61 Path& path() const |
| 59 { | 62 { |
| 60 ASSERT(m_path); | 63 ASSERT(m_path); |
| 61 return *m_path; | 64 return *m_path; |
| 62 } | 65 } |
| 63 | 66 |
| 64 protected: | 67 protected: |
| 65 virtual void updateShapeFromElement(); | 68 virtual void updateShapeFromElement(); |
| 66 virtual bool isEmpty() const; | 69 virtual bool isEmpty() const; |
| 67 virtual bool shapeDependentStrokeContains(const FloatPoint&); | 70 virtual bool shapeDependentStrokeContains(const FloatPoint&); |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 bool m_needsBoundariesUpdate : 1; | 124 bool m_needsBoundariesUpdate : 1; |
| 122 bool m_needsShapeUpdate : 1; | 125 bool m_needsShapeUpdate : 1; |
| 123 bool m_needsTransformUpdate : 1; | 126 bool m_needsTransformUpdate : 1; |
| 124 }; | 127 }; |
| 125 | 128 |
| 126 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGShape, isSVGShape()); | 129 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGShape, isSVGShape()); |
| 127 | 130 |
| 128 } | 131 } |
| 129 | 132 |
| 130 #endif | 133 #endif |
| OLD | NEW |