| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 addToPropertyMap(m_spacing); | 63 addToPropertyMap(m_spacing); |
| 64 } | 64 } |
| 65 | 65 |
| 66 PassRefPtr<SVGTextPathElement> SVGTextPathElement::create(Document& document) | 66 PassRefPtr<SVGTextPathElement> SVGTextPathElement::create(Document& document) |
| 67 { | 67 { |
| 68 return adoptRef(new SVGTextPathElement(document)); | 68 return adoptRef(new SVGTextPathElement(document)); |
| 69 } | 69 } |
| 70 | 70 |
| 71 SVGTextPathElement::~SVGTextPathElement() | 71 SVGTextPathElement::~SVGTextPathElement() |
| 72 { | 72 { |
| 73 #if !ENABLE(OILPAN) |
| 73 clearResourceReferences(); | 74 clearResourceReferences(); |
| 75 #endif |
| 74 } | 76 } |
| 75 | 77 |
| 76 void SVGTextPathElement::clearResourceReferences() | 78 void SVGTextPathElement::clearResourceReferences() |
| 77 { | 79 { |
| 78 document().accessSVGExtensions().removeAllTargetReferencesForElement(this); | 80 document().accessSVGExtensions().removeAllTargetReferencesForElement(this); |
| 79 } | 81 } |
| 80 | 82 |
| 81 bool SVGTextPathElement::isSupportedAttribute(const QualifiedName& attrName) | 83 bool SVGTextPathElement::isSupportedAttribute(const QualifiedName& attrName) |
| 82 { | 84 { |
| 83 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); | 85 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 clearResourceReferences(); | 183 clearResourceReferences(); |
| 182 } | 184 } |
| 183 | 185 |
| 184 bool SVGTextPathElement::selfHasRelativeLengths() const | 186 bool SVGTextPathElement::selfHasRelativeLengths() const |
| 185 { | 187 { |
| 186 return m_startOffset->currentValue()->isRelative() | 188 return m_startOffset->currentValue()->isRelative() |
| 187 || SVGTextContentElement::selfHasRelativeLengths(); | 189 || SVGTextContentElement::selfHasRelativeLengths(); |
| 188 } | 190 } |
| 189 | 191 |
| 190 } | 192 } |
| OLD | NEW |