| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserv
ed. | 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserv
ed. |
| 6 * | 6 * |
| 7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 return fastHasAttribute(asyncAttr) || (m_loader->forceAsync()); | 118 return fastHasAttribute(asyncAttr) || (m_loader->forceAsync()); |
| 119 } | 119 } |
| 120 | 120 |
| 121 KURL HTMLScriptElement::src() const | 121 KURL HTMLScriptElement::src() const |
| 122 { | 122 { |
| 123 return document().completeURL(sourceAttributeValue()); | 123 return document().completeURL(sourceAttributeValue()); |
| 124 } | 124 } |
| 125 | 125 |
| 126 String HTMLScriptElement::sourceAttributeValue() const | 126 String HTMLScriptElement::sourceAttributeValue() const |
| 127 { | 127 { |
| 128 return getAttribute(srcAttr).string(); | 128 return getAttribute(srcAttr).getString(); |
| 129 } | 129 } |
| 130 | 130 |
| 131 String HTMLScriptElement::charsetAttributeValue() const | 131 String HTMLScriptElement::charsetAttributeValue() const |
| 132 { | 132 { |
| 133 return getAttribute(charsetAttr).string(); | 133 return getAttribute(charsetAttr).getString(); |
| 134 } | 134 } |
| 135 | 135 |
| 136 String HTMLScriptElement::typeAttributeValue() const | 136 String HTMLScriptElement::typeAttributeValue() const |
| 137 { | 137 { |
| 138 return getAttribute(typeAttr).string(); | 138 return getAttribute(typeAttr).getString(); |
| 139 } | 139 } |
| 140 | 140 |
| 141 String HTMLScriptElement::languageAttributeValue() const | 141 String HTMLScriptElement::languageAttributeValue() const |
| 142 { | 142 { |
| 143 return getAttribute(languageAttr).string(); | 143 return getAttribute(languageAttr).getString(); |
| 144 } | 144 } |
| 145 | 145 |
| 146 String HTMLScriptElement::forAttributeValue() const | 146 String HTMLScriptElement::forAttributeValue() const |
| 147 { | 147 { |
| 148 return getAttribute(forAttr).string(); | 148 return getAttribute(forAttr).getString(); |
| 149 } | 149 } |
| 150 | 150 |
| 151 String HTMLScriptElement::eventAttributeValue() const | 151 String HTMLScriptElement::eventAttributeValue() const |
| 152 { | 152 { |
| 153 return getAttribute(eventAttr).string(); | 153 return getAttribute(eventAttr).getString(); |
| 154 } | 154 } |
| 155 | 155 |
| 156 bool HTMLScriptElement::asyncAttributeValue() const | 156 bool HTMLScriptElement::asyncAttributeValue() const |
| 157 { | 157 { |
| 158 return fastHasAttribute(asyncAttr); | 158 return fastHasAttribute(asyncAttr); |
| 159 } | 159 } |
| 160 | 160 |
| 161 bool HTMLScriptElement::deferAttributeValue() const | 161 bool HTMLScriptElement::deferAttributeValue() const |
| 162 { | 162 { |
| 163 return fastHasAttribute(deferAttr); | 163 return fastHasAttribute(deferAttr); |
| (...skipping 15 matching lines...) Expand all Loading... |
| 179 return adoptRefWillBeNoop(new HTMLScriptElement(document(), false, m_loader-
>alreadyStarted())); | 179 return adoptRefWillBeNoop(new HTMLScriptElement(document(), false, m_loader-
>alreadyStarted())); |
| 180 } | 180 } |
| 181 | 181 |
| 182 DEFINE_TRACE(HTMLScriptElement) | 182 DEFINE_TRACE(HTMLScriptElement) |
| 183 { | 183 { |
| 184 visitor->trace(m_loader); | 184 visitor->trace(m_loader); |
| 185 HTMLElement::trace(visitor); | 185 HTMLElement::trace(visitor); |
| 186 } | 186 } |
| 187 | 187 |
| 188 } // namespace blink | 188 } // namespace blink |
| OLD | NEW |