| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 PassRefPtr<HTMLScriptElement> HTMLScriptElement::create(Document& document, bool
wasInsertedByParser, bool alreadyStarted) | 47 PassRefPtr<HTMLScriptElement> HTMLScriptElement::create(Document& document, bool
wasInsertedByParser, bool alreadyStarted) |
| 48 { | 48 { |
| 49 return adoptRef(new HTMLScriptElement(document, wasInsertedByParser, already
Started)); | 49 return adoptRef(new HTMLScriptElement(document, wasInsertedByParser, already
Started)); |
| 50 } | 50 } |
| 51 | 51 |
| 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 |
| 58 { |
| 59 return name == srcAttr || HTMLElement::hasLegalLinkAttribute(name); |
| 60 } |
| 61 |
| 57 void HTMLScriptElement::childrenChanged(bool changedByParser, Node* beforeChange
, Node* afterChange, int childCountDelta) | 62 void HTMLScriptElement::childrenChanged(bool changedByParser, Node* beforeChange
, Node* afterChange, int childCountDelta) |
| 58 { | 63 { |
| 59 HTMLElement::childrenChanged(changedByParser, beforeChange, afterChange, chi
ldCountDelta); | 64 HTMLElement::childrenChanged(changedByParser, beforeChange, afterChange, chi
ldCountDelta); |
| 60 m_loader->childrenChanged(); | 65 m_loader->childrenChanged(); |
| 61 } | 66 } |
| 62 | 67 |
| 63 void HTMLScriptElement::parseAttribute(const QualifiedName& name, const AtomicSt
ring& value) | 68 void HTMLScriptElement::parseAttribute(const QualifiedName& name, const AtomicSt
ring& value) |
| 64 { | 69 { |
| 65 if (name == srcAttr) | 70 if (name == srcAttr) |
| 66 m_loader->handleSourceAttribute(value); | 71 m_loader->handleSourceAttribute(value); |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 ASSERT(!m_loader->haveFiredLoadEvent()); | 167 ASSERT(!m_loader->haveFiredLoadEvent()); |
| 163 dispatchEvent(Event::create(EventTypeNames::load)); | 168 dispatchEvent(Event::create(EventTypeNames::load)); |
| 164 } | 169 } |
| 165 | 170 |
| 166 PassRefPtr<Element> HTMLScriptElement::cloneElementWithoutAttributesAndChildren(
) | 171 PassRefPtr<Element> HTMLScriptElement::cloneElementWithoutAttributesAndChildren(
) |
| 167 { | 172 { |
| 168 return adoptRef(new HTMLScriptElement(document(), false, m_loader->alreadySt
arted())); | 173 return adoptRef(new HTMLScriptElement(document(), false, m_loader->alreadySt
arted())); |
| 169 } | 174 } |
| 170 | 175 |
| 171 } | 176 } |
| OLD | NEW |