Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(558)

Side by Side Diff: Source/core/html/HTMLScriptElement.cpp

Issue 205523003: Remove beforeload events. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove more tests Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/html/HTMLPlugInElement.cpp ('k') | Source/core/html/HTMLTrackElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « Source/core/html/HTMLPlugInElement.cpp ('k') | Source/core/html/HTMLTrackElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698