Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(207)

Side by Side Diff: Source/core/rendering/svg/RenderSVGText.h

Issue 33983003: Introduce DEFINE_RENDER_OBJECT_TYPE_CASTS to replace manual toRenderFoo, and use it (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006 Apple Computer, Inc. 2 * Copyright (C) 2006 Apple Computer, Inc.
3 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> 3 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org>
4 * Copyright (C) Research In Motion Limited 2010-2012. All rights reserved. 4 * Copyright (C) Research In Motion Limited 2010-2012. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 94
95 bool m_needsReordering : 1; 95 bool m_needsReordering : 1;
96 bool m_needsPositioningValuesUpdate : 1; 96 bool m_needsPositioningValuesUpdate : 1;
97 bool m_needsTransformUpdate : 1; 97 bool m_needsTransformUpdate : 1;
98 bool m_needsTextMetricsUpdate : 1; 98 bool m_needsTextMetricsUpdate : 1;
99 AffineTransform m_localTransform; 99 AffineTransform m_localTransform;
100 SVGTextLayoutAttributesBuilder m_layoutAttributesBuilder; 100 SVGTextLayoutAttributesBuilder m_layoutAttributesBuilder;
101 Vector<SVGTextLayoutAttributes*> m_layoutAttributes; 101 Vector<SVGTextLayoutAttributes*> m_layoutAttributes;
102 }; 102 };
103 103
104 inline RenderSVGText* toRenderSVGText(RenderObject* object) 104 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGText, isSVGText());
105 {
106 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isSVGText());
107 return static_cast<RenderSVGText*>(object);
108 }
109
110 inline const RenderSVGText* toRenderSVGText(const RenderObject* object)
111 {
112 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isSVGText());
113 return static_cast<const RenderSVGText*>(object);
114 }
115
116 // This will catch anyone doing an unnecessary cast.
117 void toRenderSVGText(const RenderSVGText*);
118 105
119 } 106 }
120 107
121 #endif 108 #endif
OLDNEW
« no previous file with comments | « Source/core/rendering/svg/RenderSVGShape.h ('k') | Source/core/rendering/svg/RenderSVGTextPath.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698