| 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 24 matching lines...) Expand all Loading... |
| 35 #include "core/events/Event.h" | 35 #include "core/events/Event.h" |
| 36 | 36 |
| 37 namespace blink { | 37 namespace blink { |
| 38 | 38 |
| 39 using namespace HTMLNames; | 39 using namespace HTMLNames; |
| 40 | 40 |
| 41 inline HTMLScriptElement::HTMLScriptElement(Document& document, bool wasInserted
ByParser, bool alreadyStarted) | 41 inline HTMLScriptElement::HTMLScriptElement(Document& document, bool wasInserted
ByParser, bool alreadyStarted) |
| 42 : HTMLElement(scriptTag, document) | 42 : HTMLElement(scriptTag, document) |
| 43 , m_loader(ScriptLoader::create(this, wasInsertedByParser, alreadyStarted)) | 43 , m_loader(ScriptLoader::create(this, wasInsertedByParser, alreadyStarted)) |
| 44 { | 44 { |
| 45 ScriptWrappable::init(this); | |
| 46 } | 45 } |
| 47 | 46 |
| 48 PassRefPtrWillBeRawPtr<HTMLScriptElement> HTMLScriptElement::create(Document& do
cument, bool wasInsertedByParser, bool alreadyStarted) | 47 PassRefPtrWillBeRawPtr<HTMLScriptElement> HTMLScriptElement::create(Document& do
cument, bool wasInsertedByParser, bool alreadyStarted) |
| 49 { | 48 { |
| 50 return adoptRefWillBeNoop(new HTMLScriptElement(document, wasInsertedByParse
r, alreadyStarted)); | 49 return adoptRefWillBeNoop(new HTMLScriptElement(document, wasInsertedByParse
r, alreadyStarted)); |
| 51 } | 50 } |
| 52 | 51 |
| 53 bool HTMLScriptElement::isURLAttribute(const Attribute& attribute) const | 52 bool HTMLScriptElement::isURLAttribute(const Attribute& attribute) const |
| 54 { | 53 { |
| 55 return attribute.name() == srcAttr || HTMLElement::isURLAttribute(attribute)
; | 54 return attribute.name() == srcAttr || HTMLElement::isURLAttribute(attribute)
; |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 ASSERT(!m_loader->haveFiredLoadEvent()); | 186 ASSERT(!m_loader->haveFiredLoadEvent()); |
| 188 dispatchEvent(Event::create(EventTypeNames::load)); | 187 dispatchEvent(Event::create(EventTypeNames::load)); |
| 189 } | 188 } |
| 190 | 189 |
| 191 PassRefPtrWillBeRawPtr<Element> HTMLScriptElement::cloneElementWithoutAttributes
AndChildren() | 190 PassRefPtrWillBeRawPtr<Element> HTMLScriptElement::cloneElementWithoutAttributes
AndChildren() |
| 192 { | 191 { |
| 193 return adoptRefWillBeNoop(new HTMLScriptElement(document(), false, m_loader-
>alreadyStarted())); | 192 return adoptRefWillBeNoop(new HTMLScriptElement(document(), false, m_loader-
>alreadyStarted())); |
| 194 } | 193 } |
| 195 | 194 |
| 196 } | 195 } |
| OLD | NEW |