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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 SVGElement::svgAttributeChanged(attrName); | 101 SVGElement::svgAttributeChanged(attrName); |
102 return; | 102 return; |
103 } | 103 } |
104 | 104 |
105 SVGElementInstance::InvalidationGuard invalidationGuard(this); | 105 SVGElementInstance::InvalidationGuard invalidationGuard(this); |
106 | 106 |
107 if (attrName == SVGNames::typeAttr || attrName == HTMLNames::onerrorAttr) | 107 if (attrName == SVGNames::typeAttr || attrName == HTMLNames::onerrorAttr) |
108 return; | 108 return; |
109 | 109 |
110 if (SVGURIReference::isKnownAttribute(attrName)) { | 110 if (SVGURIReference::isKnownAttribute(attrName)) { |
111 m_loader->handleSourceAttribute(href()); | 111 m_loader->handleSourceAttribute(hrefCurrentValue()); |
112 return; | 112 return; |
113 } | 113 } |
114 | 114 |
115 if (SVGExternalResourcesRequired::handleAttributeChange(this, attrName)) | 115 if (SVGExternalResourcesRequired::handleAttributeChange(this, attrName)) |
116 return; | 116 return; |
117 | 117 |
118 ASSERT_NOT_REACHED(); | 118 ASSERT_NOT_REACHED(); |
119 } | 119 } |
120 | 120 |
121 Node::InsertionNotificationRequest SVGScriptElement::insertedInto(ContainerNode*
rootParent) | 121 Node::InsertionNotificationRequest SVGScriptElement::insertedInto(ContainerNode*
rootParent) |
(...skipping 29 matching lines...) Expand all 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(href())); | 161 addSubresourceURL(urls, document()->completeURL(hrefCurrentValue())); |
162 } | 162 } |
163 | 163 |
164 String SVGScriptElement::sourceAttributeValue() const | 164 String SVGScriptElement::sourceAttributeValue() const |
165 { | 165 { |
166 return href(); | 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(); |
172 } | 172 } |
173 | 173 |
174 String SVGScriptElement::typeAttributeValue() const | 174 String SVGScriptElement::typeAttributeValue() const |
175 { | 175 { |
176 return type(); | 176 return type(); |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 |