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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 | 123 |
124 if (attrName == SVGNames::startOffsetAttr) | 124 if (attrName == SVGNames::startOffsetAttr) |
125 updateRelativeLengthsInformation(); | 125 updateRelativeLengthsInformation(); |
126 | 126 |
127 if (RenderObject* object = renderer()) | 127 if (RenderObject* object = renderer()) |
128 RenderSVGResource::markForLayoutAndParentResourceInvalidation(object); | 128 RenderSVGResource::markForLayoutAndParentResourceInvalidation(object); |
129 } | 129 } |
130 | 130 |
131 RenderObject* SVGTextPathElement::createRenderer(RenderStyle*) | 131 RenderObject* SVGTextPathElement::createRenderer(RenderStyle*) |
132 { | 132 { |
133 return new (document()->renderArena()) RenderSVGTextPath(this); | 133 return new RenderSVGTextPath(this); |
134 } | 134 } |
135 | 135 |
136 bool SVGTextPathElement::childShouldCreateRenderer(const NodeRenderingContext& c
hildContext) const | 136 bool SVGTextPathElement::childShouldCreateRenderer(const NodeRenderingContext& c
hildContext) const |
137 { | 137 { |
138 if (childContext.node()->isTextNode() | 138 if (childContext.node()->isTextNode() |
139 || childContext.node()->hasTagName(SVGNames::aTag) | 139 || childContext.node()->hasTagName(SVGNames::aTag) |
140 || childContext.node()->hasTagName(SVGNames::trefTag) | 140 || childContext.node()->hasTagName(SVGNames::trefTag) |
141 || childContext.node()->hasTagName(SVGNames::tspanTag)) | 141 || childContext.node()->hasTagName(SVGNames::tspanTag)) |
142 return true; | 142 return true; |
143 | 143 |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 clearResourceReferences(); | 192 clearResourceReferences(); |
193 } | 193 } |
194 | 194 |
195 bool SVGTextPathElement::selfHasRelativeLengths() const | 195 bool SVGTextPathElement::selfHasRelativeLengths() const |
196 { | 196 { |
197 return startOffsetCurrentValue().isRelative() | 197 return startOffsetCurrentValue().isRelative() |
198 || SVGTextContentElement::selfHasRelativeLengths(); | 198 || SVGTextContentElement::selfHasRelativeLengths(); |
199 } | 199 } |
200 | 200 |
201 } | 201 } |
OLD | NEW |