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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 void updateRepaintBoundingBox(); | 102 void updateRepaintBoundingBox(); |
103 | 103 |
104 bool setupNonScalingStrokeContext(AffineTransform&, GraphicsContextStateSave
r&); | 104 bool setupNonScalingStrokeContext(AffineTransform&, GraphicsContextStateSave
r&); |
105 | 105 |
106 bool shouldGenerateMarkerPositions() const; | 106 bool shouldGenerateMarkerPositions() const; |
107 FloatRect markerRect(float strokeWidth) const; | 107 FloatRect markerRect(float strokeWidth) const; |
108 void processMarkerPositions(); | 108 void processMarkerPositions(); |
109 | 109 |
110 void fillShape(RenderStyle*, GraphicsContext*); | 110 void fillShape(RenderStyle*, GraphicsContext*); |
111 void strokeShape(RenderStyle*, GraphicsContext*); | 111 void strokeShape(RenderStyle*, GraphicsContext*); |
112 void fillAndStrokeShape(GraphicsContext*); | |
113 void drawMarkers(PaintInfo&); | 112 void drawMarkers(PaintInfo&); |
114 | 113 |
115 private: | 114 private: |
116 FloatRect m_repaintBoundingBox; | 115 FloatRect m_repaintBoundingBox; |
117 FloatRect m_repaintBoundingBoxExcludingShadow; | 116 FloatRect m_repaintBoundingBoxExcludingShadow; |
118 AffineTransform m_localTransform; | 117 AffineTransform m_localTransform; |
119 OwnPtr<Path> m_path; | 118 OwnPtr<Path> m_path; |
120 Vector<MarkerPosition> m_markerPositions; | 119 Vector<MarkerPosition> m_markerPositions; |
121 | 120 |
122 bool m_needsBoundariesUpdate : 1; | 121 bool m_needsBoundariesUpdate : 1; |
(...skipping 12 matching lines...) Expand all Loading... |
135 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isSVGShape()); | 134 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isSVGShape()); |
136 return static_cast<const RenderSVGShape*>(object); | 135 return static_cast<const RenderSVGShape*>(object); |
137 } | 136 } |
138 | 137 |
139 // This will catch anyone doing an unnecessary cast. | 138 // This will catch anyone doing an unnecessary cast. |
140 void toRenderSVGShape(const RenderSVGShape*); | 139 void toRenderSVGShape(const RenderSVGShape*); |
141 | 140 |
142 } | 141 } |
143 | 142 |
144 #endif | 143 #endif |
OLD | NEW |