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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 bool HTMLScriptElement::isURLAttribute(const Attribute& attribute) const | 52 bool HTMLScriptElement::isURLAttribute(const Attribute& attribute) const |
53 { | 53 { |
54 return attribute.name() == srcAttr || HTMLElement::isURLAttribute(attribute)
; | 54 return attribute.name() == srcAttr || HTMLElement::isURLAttribute(attribute)
; |
55 } | 55 } |
56 | 56 |
57 bool HTMLScriptElement::hasLegalLinkAttribute(const QualifiedName& name) const | 57 bool HTMLScriptElement::hasLegalLinkAttribute(const QualifiedName& name) const |
58 { | 58 { |
59 return name == srcAttr || HTMLElement::hasLegalLinkAttribute(name); | 59 return name == srcAttr || HTMLElement::hasLegalLinkAttribute(name); |
60 } | 60 } |
61 | 61 |
| 62 const QualifiedName& HTMLScriptElement::subResourceAttributeName() const |
| 63 { |
| 64 return srcAttr; |
| 65 } |
| 66 |
62 void HTMLScriptElement::childrenChanged(bool changedByParser, Node* beforeChange
, Node* afterChange, int childCountDelta) | 67 void HTMLScriptElement::childrenChanged(bool changedByParser, Node* beforeChange
, Node* afterChange, int childCountDelta) |
63 { | 68 { |
64 HTMLElement::childrenChanged(changedByParser, beforeChange, afterChange, chi
ldCountDelta); | 69 HTMLElement::childrenChanged(changedByParser, beforeChange, afterChange, chi
ldCountDelta); |
65 m_loader->childrenChanged(); | 70 m_loader->childrenChanged(); |
66 } | 71 } |
67 | 72 |
68 void HTMLScriptElement::parseAttribute(const QualifiedName& name, const AtomicSt
ring& value) | 73 void HTMLScriptElement::parseAttribute(const QualifiedName& name, const AtomicSt
ring& value) |
69 { | 74 { |
70 if (name == srcAttr) | 75 if (name == srcAttr) |
71 m_loader->handleSourceAttribute(value); | 76 m_loader->handleSourceAttribute(value); |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 ASSERT(!m_loader->haveFiredLoadEvent()); | 172 ASSERT(!m_loader->haveFiredLoadEvent()); |
168 dispatchEvent(Event::create(EventTypeNames::load)); | 173 dispatchEvent(Event::create(EventTypeNames::load)); |
169 } | 174 } |
170 | 175 |
171 PassRefPtr<Element> HTMLScriptElement::cloneElementWithoutAttributesAndChildren(
) | 176 PassRefPtr<Element> HTMLScriptElement::cloneElementWithoutAttributesAndChildren(
) |
172 { | 177 { |
173 return adoptRef(new HTMLScriptElement(document(), false, m_loader->alreadySt
arted())); | 178 return adoptRef(new HTMLScriptElement(document(), false, m_loader->alreadySt
arted())); |
174 } | 179 } |
175 | 180 |
176 } | 181 } |
OLD | NEW |