| 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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 return false; | 153 return false; |
| 154 } | 154 } |
| 155 | 155 |
| 156 void SVGTextPathElement::buildPendingResource() | 156 void SVGTextPathElement::buildPendingResource() |
| 157 { | 157 { |
| 158 clearResourceReferences(); | 158 clearResourceReferences(); |
| 159 if (!inDocument()) | 159 if (!inDocument()) |
| 160 return; | 160 return; |
| 161 | 161 |
| 162 String id; | 162 String id; |
| 163 Element* target = SVGURIReference::targetElementFromIRIString(hrefCurrentVal
ue(), &document(), &id); | 163 Element* target = SVGURIReference::targetElementFromIRIString(hrefCurrentVal
ue(), document(), &id); |
| 164 if (!target) { | 164 if (!target) { |
| 165 // Do not register as pending if we are already pending this resource. | 165 // Do not register as pending if we are already pending this resource. |
| 166 if (document().accessSVGExtensions()->isElementPendingResource(this, id)
) | 166 if (document().accessSVGExtensions()->isElementPendingResource(this, id)
) |
| 167 return; | 167 return; |
| 168 | 168 |
| 169 if (!id.isEmpty()) { | 169 if (!id.isEmpty()) { |
| 170 document().accessSVGExtensions()->addPendingResource(id, this); | 170 document().accessSVGExtensions()->addPendingResource(id, this); |
| 171 ASSERT(hasPendingResources()); | 171 ASSERT(hasPendingResources()); |
| 172 } | 172 } |
| 173 } else if (target->hasTagName(SVGNames::pathTag)) { | 173 } else if (target->hasTagName(SVGNames::pathTag)) { |
| (...skipping 17 matching lines...) Expand all Loading... |
| 191 clearResourceReferences(); | 191 clearResourceReferences(); |
| 192 } | 192 } |
| 193 | 193 |
| 194 bool SVGTextPathElement::selfHasRelativeLengths() const | 194 bool SVGTextPathElement::selfHasRelativeLengths() const |
| 195 { | 195 { |
| 196 return startOffsetCurrentValue().isRelative() | 196 return startOffsetCurrentValue().isRelative() |
| 197 || SVGTextContentElement::selfHasRelativeLengths(); | 197 || SVGTextContentElement::selfHasRelativeLengths(); |
| 198 } | 198 } |
| 199 | 199 |
| 200 } | 200 } |
| OLD | NEW |