| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 | 62 const QualifiedName& HTMLScriptElement::subResourceAttributeName() const |
| 63 { | 63 { |
| 64 return srcAttr; | 64 return srcAttr; |
| 65 } | 65 } |
| 66 | 66 |
| 67 void HTMLScriptElement::childrenChanged(bool changedByParser, Node* beforeChange
, Node* afterChange, int childCountDelta) | 67 void HTMLScriptElement::childrenChanged(const ChildrenChange& change) |
| 68 { | 68 { |
| 69 HTMLElement::childrenChanged(changedByParser, beforeChange, afterChange, chi
ldCountDelta); | 69 HTMLElement::childrenChanged(change); |
| 70 m_loader->childrenChanged(); | 70 m_loader->childrenChanged(); |
| 71 } | 71 } |
| 72 | 72 |
| 73 void HTMLScriptElement::parseAttribute(const QualifiedName& name, const AtomicSt
ring& value) | 73 void HTMLScriptElement::parseAttribute(const QualifiedName& name, const AtomicSt
ring& value) |
| 74 { | 74 { |
| 75 if (name == srcAttr) | 75 if (name == srcAttr) |
| 76 m_loader->handleSourceAttribute(value); | 76 m_loader->handleSourceAttribute(value); |
| 77 else if (name == asyncAttr) | 77 else if (name == asyncAttr) |
| 78 m_loader->handleAsyncAttribute(); | 78 m_loader->handleAsyncAttribute(); |
| 79 else | 79 else |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 ASSERT(!m_loader->haveFiredLoadEvent()); | 179 ASSERT(!m_loader->haveFiredLoadEvent()); |
| 180 dispatchEvent(Event::create(EventTypeNames::load)); | 180 dispatchEvent(Event::create(EventTypeNames::load)); |
| 181 } | 181 } |
| 182 | 182 |
| 183 PassRefPtrWillBeRawPtr<Element> HTMLScriptElement::cloneElementWithoutAttributes
AndChildren() | 183 PassRefPtrWillBeRawPtr<Element> HTMLScriptElement::cloneElementWithoutAttributes
AndChildren() |
| 184 { | 184 { |
| 185 return adoptRefWillBeNoop(new HTMLScriptElement(document(), false, m_loader-
>alreadyStarted())); | 185 return adoptRefWillBeNoop(new HTMLScriptElement(document(), false, m_loader-
>alreadyStarted())); |
| 186 } | 186 } |
| 187 | 187 |
| 188 } | 188 } |
| OLD | NEW |