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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 FloatRect m_repaintBoundingBoxExcludingShadow; | 116 FloatRect m_repaintBoundingBoxExcludingShadow; |
117 AffineTransform m_localTransform; | 117 AffineTransform m_localTransform; |
118 OwnPtr<Path> m_path; | 118 OwnPtr<Path> m_path; |
119 Vector<MarkerPosition> m_markerPositions; | 119 Vector<MarkerPosition> m_markerPositions; |
120 | 120 |
121 bool m_needsBoundariesUpdate : 1; | 121 bool m_needsBoundariesUpdate : 1; |
122 bool m_needsShapeUpdate : 1; | 122 bool m_needsShapeUpdate : 1; |
123 bool m_needsTransformUpdate : 1; | 123 bool m_needsTransformUpdate : 1; |
124 }; | 124 }; |
125 | 125 |
126 inline RenderSVGShape* toRenderSVGShape(RenderObject* object) | 126 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGShape, isSVGShape()); |
127 { | |
128 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isSVGShape()); | |
129 return static_cast<RenderSVGShape*>(object); | |
130 } | |
131 | |
132 inline const RenderSVGShape* toRenderSVGShape(const RenderObject* object) | |
133 { | |
134 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isSVGShape()); | |
135 return static_cast<const RenderSVGShape*>(object); | |
136 } | |
137 | |
138 // This will catch anyone doing an unnecessary cast. | |
139 void toRenderSVGShape(const RenderSVGShape*); | |
140 | 127 |
141 } | 128 } |
142 | 129 |
143 #endif | 130 #endif |
OLD | NEW |