OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org> |
3 * Copyright (C) 2004, 2005, 2006, 2008 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006, 2008 Rob Buis <buis@kde.org> |
4 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 return matrix; | 125 return matrix; |
126 } | 126 } |
127 | 127 |
128 AffineTransform* SVGTextElement::supplementalTransform() | 128 AffineTransform* SVGTextElement::supplementalTransform() |
129 { | 129 { |
130 if (!m_supplementalTransform) | 130 if (!m_supplementalTransform) |
131 m_supplementalTransform = adoptPtr(new AffineTransform); | 131 m_supplementalTransform = adoptPtr(new AffineTransform); |
132 return m_supplementalTransform.get(); | 132 return m_supplementalTransform.get(); |
133 } | 133 } |
134 | 134 |
135 RenderObject* SVGTextElement::createRenderer(RenderArena* arena, RenderStyle*) | 135 RenderObject* SVGTextElement::createRenderer(RenderStyle*) |
136 { | 136 { |
137 return new (arena) RenderSVGText(this); | 137 return new RenderSVGText(this); |
138 } | 138 } |
139 | 139 |
140 bool SVGTextElement::childShouldCreateRenderer(const NodeRenderingContext& child
Context) const | 140 bool SVGTextElement::childShouldCreateRenderer(const NodeRenderingContext& child
Context) const |
141 { | 141 { |
142 if (childContext.node()->isTextNode() | 142 if (childContext.node()->isTextNode() |
143 || childContext.node()->hasTagName(SVGNames::aTag) | 143 || childContext.node()->hasTagName(SVGNames::aTag) |
144 #if ENABLE(SVG_FONTS) | 144 #if ENABLE(SVG_FONTS) |
145 || childContext.node()->hasTagName(SVGNames::altGlyphTag) | 145 || childContext.node()->hasTagName(SVGNames::altGlyphTag) |
146 #endif | 146 #endif |
147 || childContext.node()->hasTagName(SVGNames::textPathTag) | 147 || childContext.node()->hasTagName(SVGNames::textPathTag) |
(...skipping 20 matching lines...) Expand all Loading... |
168 if (attrName == SVGNames::transformAttr) { | 168 if (attrName == SVGNames::transformAttr) { |
169 renderer->setNeedsTransformUpdate(); | 169 renderer->setNeedsTransformUpdate(); |
170 RenderSVGResource::markForLayoutAndParentResourceInvalidation(renderer); | 170 RenderSVGResource::markForLayoutAndParentResourceInvalidation(renderer); |
171 return; | 171 return; |
172 } | 172 } |
173 | 173 |
174 ASSERT_NOT_REACHED(); | 174 ASSERT_NOT_REACHED(); |
175 } | 175 } |
176 | 176 |
177 } | 177 } |
OLD | NEW |