OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> |
3 * Copyright (C) 2010 Rob Buis <rwlbuis@gmail.com> | 3 * Copyright (C) 2010 Rob Buis <rwlbuis@gmail.com> |
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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 return; | 120 return; |
121 } | 121 } |
122 | 122 |
123 if (attrName == SVGNames::startOffsetAttr) | 123 if (attrName == SVGNames::startOffsetAttr) |
124 updateRelativeLengthsInformation(); | 124 updateRelativeLengthsInformation(); |
125 | 125 |
126 if (RenderObject* object = renderer()) | 126 if (RenderObject* object = renderer()) |
127 RenderSVGResource::markForLayoutAndParentResourceInvalidation(object); | 127 RenderSVGResource::markForLayoutAndParentResourceInvalidation(object); |
128 } | 128 } |
129 | 129 |
130 RenderObject* SVGTextPathElement::createRenderer(RenderArena* arena, RenderStyle
*) | 130 RenderObject* SVGTextPathElement::createRenderer(RenderStyle*) |
131 { | 131 { |
132 return new (arena) RenderSVGTextPath(this); | 132 return new RenderSVGTextPath(this); |
133 } | 133 } |
134 | 134 |
135 bool SVGTextPathElement::childShouldCreateRenderer(const NodeRenderingContext& c
hildContext) const | 135 bool SVGTextPathElement::childShouldCreateRenderer(const NodeRenderingContext& c
hildContext) const |
136 { | 136 { |
137 if (childContext.node()->isTextNode() | 137 if (childContext.node()->isTextNode() |
138 || childContext.node()->hasTagName(SVGNames::aTag) | 138 || childContext.node()->hasTagName(SVGNames::aTag) |
139 || childContext.node()->hasTagName(SVGNames::trefTag) | 139 || childContext.node()->hasTagName(SVGNames::trefTag) |
140 || childContext.node()->hasTagName(SVGNames::tspanTag)) | 140 || childContext.node()->hasTagName(SVGNames::tspanTag)) |
141 return true; | 141 return true; |
142 | 142 |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 clearResourceReferences(); | 191 clearResourceReferences(); |
192 } | 192 } |
193 | 193 |
194 bool SVGTextPathElement::selfHasRelativeLengths() const | 194 bool SVGTextPathElement::selfHasRelativeLengths() const |
195 { | 195 { |
196 return startOffset().isRelative() | 196 return startOffset().isRelative() |
197 || SVGTextContentElement::selfHasRelativeLengths(); | 197 || SVGTextContentElement::selfHasRelativeLengths(); |
198 } | 198 } |
199 | 199 |
200 } | 200 } |
OLD | NEW |