| 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 FloatRect calculateObjectBoundingBox() const; | 99 FloatRect calculateObjectBoundingBox() const; |
| 100 FloatRect calculateStrokeBoundingBox() const; | 100 FloatRect calculateStrokeBoundingBox() const; |
| 101 void updatePaintInvalidationBoundingBox(); | 101 void updatePaintInvalidationBoundingBox(); |
| 102 | 102 |
| 103 bool setupNonScalingStrokeContext(AffineTransform&, GraphicsContextStateSave
r&); | 103 bool setupNonScalingStrokeContext(AffineTransform&, GraphicsContextStateSave
r&); |
| 104 | 104 |
| 105 bool shouldGenerateMarkerPositions() const; | 105 bool shouldGenerateMarkerPositions() const; |
| 106 FloatRect markerRect(float strokeWidth) const; | 106 FloatRect markerRect(float strokeWidth) const; |
| 107 void processMarkerPositions(); | 107 void processMarkerPositions(); |
| 108 | 108 |
| 109 void fillShape(RenderStyle*, GraphicsContext*); | |
| 110 void strokeShape(RenderStyle*, GraphicsContext*); | |
| 111 void drawMarkers(PaintInfo&); | 109 void drawMarkers(PaintInfo&); |
| 112 | 110 |
| 113 private: | 111 private: |
| 114 FloatRect m_paintInvalidationBoundingBox; | 112 FloatRect m_paintInvalidationBoundingBox; |
| 115 AffineTransform m_localTransform; | 113 AffineTransform m_localTransform; |
| 116 OwnPtr<Path> m_path; | 114 OwnPtr<Path> m_path; |
| 117 Vector<MarkerPosition> m_markerPositions; | 115 Vector<MarkerPosition> m_markerPositions; |
| 118 | 116 |
| 119 bool m_needsBoundariesUpdate : 1; | 117 bool m_needsBoundariesUpdate : 1; |
| 120 bool m_needsShapeUpdate : 1; | 118 bool m_needsShapeUpdate : 1; |
| 121 bool m_needsTransformUpdate : 1; | 119 bool m_needsTransformUpdate : 1; |
| 122 }; | 120 }; |
| 123 | 121 |
| 124 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGShape, isSVGShape()); | 122 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGShape, isSVGShape()); |
| 125 | 123 |
| 126 } | 124 } |
| 127 | 125 |
| 128 #endif | 126 #endif |
| OLD | NEW |