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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 HTMLElement::childrenChanged(changedByParser, beforeChange, afterChange, chi
ldCountDelta); | 68 HTMLElement::childrenChanged(changedByParser, beforeChange, afterChange, chi
ldCountDelta); |
69 m_loader->childrenChanged(); | 69 m_loader->childrenChanged(); |
70 } | 70 } |
71 | 71 |
72 void HTMLScriptElement::parseAttribute(const QualifiedName& name, const AtomicSt
ring& value) | 72 void HTMLScriptElement::parseAttribute(const QualifiedName& name, const AtomicSt
ring& value) |
73 { | 73 { |
74 if (name == srcAttr) | 74 if (name == srcAttr) |
75 m_loader->handleSourceAttribute(value); | 75 m_loader->handleSourceAttribute(value); |
76 else if (name == asyncAttr) | 76 else if (name == asyncAttr) |
77 m_loader->handleAsyncAttribute(); | 77 m_loader->handleAsyncAttribute(); |
78 else if (name == onbeforeloadAttr) | |
79 setAttributeEventListener(EventTypeNames::beforeload, createAttributeEve
ntListener(this, name, value)); | |
80 else | 78 else |
81 HTMLElement::parseAttribute(name, value); | 79 HTMLElement::parseAttribute(name, value); |
82 } | 80 } |
83 | 81 |
84 Node::InsertionNotificationRequest HTMLScriptElement::insertedInto(ContainerNode
* insertionPoint) | 82 Node::InsertionNotificationRequest HTMLScriptElement::insertedInto(ContainerNode
* insertionPoint) |
85 { | 83 { |
86 HTMLElement::insertedInto(insertionPoint); | 84 HTMLElement::insertedInto(insertionPoint); |
87 return InsertionShouldCallDidNotifySubtreeInsertions; | 85 return InsertionShouldCallDidNotifySubtreeInsertions; |
88 } | 86 } |
89 | 87 |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 ASSERT(!m_loader->haveFiredLoadEvent()); | 169 ASSERT(!m_loader->haveFiredLoadEvent()); |
172 dispatchEvent(Event::create(EventTypeNames::load)); | 170 dispatchEvent(Event::create(EventTypeNames::load)); |
173 } | 171 } |
174 | 172 |
175 PassRefPtr<Element> HTMLScriptElement::cloneElementWithoutAttributesAndChildren(
) | 173 PassRefPtr<Element> HTMLScriptElement::cloneElementWithoutAttributesAndChildren(
) |
176 { | 174 { |
177 return adoptRef(new HTMLScriptElement(document(), false, m_loader->alreadySt
arted())); | 175 return adoptRef(new HTMLScriptElement(document(), false, m_loader->alreadySt
arted())); |
178 } | 176 } |
179 | 177 |
180 } | 178 } |
OLD | NEW |