| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2008 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2008 Nikolas Zimmermann <zimmermann@kde.org> |
| 3 * Copyright (C) 2004, 2005, 2007 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2007 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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 | 151 |
| 152 void SVGScriptElement::setType(const String& type) | 152 void SVGScriptElement::setType(const String& type) |
| 153 { | 153 { |
| 154 m_type = type; | 154 m_type = type; |
| 155 } | 155 } |
| 156 | 156 |
| 157 void SVGScriptElement::addSubresourceAttributeURLs(ListHashSet<KURL>& urls) cons
t | 157 void SVGScriptElement::addSubresourceAttributeURLs(ListHashSet<KURL>& urls) cons
t |
| 158 { | 158 { |
| 159 SVGElement::addSubresourceAttributeURLs(urls); | 159 SVGElement::addSubresourceAttributeURLs(urls); |
| 160 | 160 |
| 161 addSubresourceURL(urls, document()->completeURL(hrefCurrentValue())); | 161 addSubresourceURL(urls, document().completeURL(hrefCurrentValue())); |
| 162 } | 162 } |
| 163 | 163 |
| 164 String SVGScriptElement::sourceAttributeValue() const | 164 String SVGScriptElement::sourceAttributeValue() const |
| 165 { | 165 { |
| 166 return hrefCurrentValue(); | 166 return hrefCurrentValue(); |
| 167 } | 167 } |
| 168 | 168 |
| 169 String SVGScriptElement::charsetAttributeValue() const | 169 String SVGScriptElement::charsetAttributeValue() const |
| 170 { | 170 { |
| 171 return String(); | 171 return String(); |
| (...skipping 29 matching lines...) Expand all Loading... |
| 201 return false; | 201 return false; |
| 202 } | 202 } |
| 203 | 203 |
| 204 bool SVGScriptElement::hasSourceAttribute() const | 204 bool SVGScriptElement::hasSourceAttribute() const |
| 205 { | 205 { |
| 206 return hasAttribute(XLinkNames::hrefAttr); | 206 return hasAttribute(XLinkNames::hrefAttr); |
| 207 } | 207 } |
| 208 | 208 |
| 209 PassRefPtr<Element> SVGScriptElement::cloneElementWithoutAttributesAndChildren() | 209 PassRefPtr<Element> SVGScriptElement::cloneElementWithoutAttributesAndChildren() |
| 210 { | 210 { |
| 211 return adoptRef(new SVGScriptElement(tagQName(), document(), false, m_loader
->alreadyStarted())); | 211 return adoptRef(new SVGScriptElement(tagQName(), &document(), false, m_loade
r->alreadyStarted())); |
| 212 } | 212 } |
| 213 | 213 |
| 214 void SVGScriptElement::setHaveFiredLoadEvent(bool haveFiredLoadEvent) | 214 void SVGScriptElement::setHaveFiredLoadEvent(bool haveFiredLoadEvent) |
| 215 { | 215 { |
| 216 m_loader->setHaveFiredLoadEvent(haveFiredLoadEvent); | 216 m_loader->setHaveFiredLoadEvent(haveFiredLoadEvent); |
| 217 } | 217 } |
| 218 | 218 |
| 219 bool SVGScriptElement::isParserInserted() const | 219 bool SVGScriptElement::isParserInserted() const |
| 220 { | 220 { |
| 221 return m_loader->isParserInserted(); | 221 return m_loader->isParserInserted(); |
| 222 } | 222 } |
| 223 | 223 |
| 224 bool SVGScriptElement::haveFiredLoadEvent() const | 224 bool SVGScriptElement::haveFiredLoadEvent() const |
| 225 { | 225 { |
| 226 return m_loader->haveFiredLoadEvent(); | 226 return m_loader->haveFiredLoadEvent(); |
| 227 } | 227 } |
| 228 | 228 |
| 229 Timer<SVGElement>* SVGScriptElement::svgLoadEventTimer() | 229 Timer<SVGElement>* SVGScriptElement::svgLoadEventTimer() |
| 230 { | 230 { |
| 231 return &m_svgLoadEventTimer; | 231 return &m_svgLoadEventTimer; |
| 232 } | 232 } |
| 233 | 233 |
| 234 } | 234 } |
| OLD | NEW |