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

Side by Side Diff: Source/WebCore/dom/Document.cpp

Issue 13934004: Plumb an event through to content/ that is sent just before 'onload'. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 8 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
« no previous file with comments | « no previous file | Source/WebCore/loader/EmptyClients.h » ('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 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. 8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved.
9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. 10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved.
(...skipping 2420 matching lines...) Expand 10 before | Expand all | Expand 10 after
2431 // FIXME: We kick off the icon loader when the Document is done parsing. 2431 // FIXME: We kick off the icon loader when the Document is done parsing.
2432 // There are earlier opportunities we could start it: 2432 // There are earlier opportunities we could start it:
2433 // -When the <head> finishes parsing 2433 // -When the <head> finishes parsing
2434 // -When any new HTMLLinkElement is inserted into the document 2434 // -When any new HTMLLinkElement is inserted into the document
2435 // But those add a dynamic component to the favicon that has UI 2435 // But those add a dynamic component to the favicon that has UI
2436 // ramifications, and we need to decide what is the Right Thing To Do(tm) 2436 // ramifications, and we need to decide what is the Right Thing To Do(tm)
2437 Frame* f = frame(); 2437 Frame* f = frame();
2438 if (f) { 2438 if (f) {
2439 f->loader()->icon()->startLoader(); 2439 f->loader()->icon()->startLoader();
2440 f->animation()->resumeAnimationsForDocument(this); 2440 f->animation()->resumeAnimationsForDocument(this);
2441 f->loader()->willHandleOnloadEvents();
2441 } 2442 }
2442 2443
2443 ImageLoader::dispatchPendingBeforeLoadEvents(); 2444 ImageLoader::dispatchPendingBeforeLoadEvents();
2444 ImageLoader::dispatchPendingLoadEvents(); 2445 ImageLoader::dispatchPendingLoadEvents();
2445 ImageLoader::dispatchPendingErrorEvents(); 2446 ImageLoader::dispatchPendingErrorEvents();
2446 2447
2447 HTMLLinkElement::dispatchPendingLoadEvents(); 2448 HTMLLinkElement::dispatchPendingLoadEvents();
2448 HTMLStyleElement::dispatchPendingLoadEvents(); 2449 HTMLStyleElement::dispatchPendingLoadEvents();
2449 2450
2450 #if ENABLE(SVG) 2451 #if ENABLE(SVG)
(...skipping 3717 matching lines...) Expand 10 before | Expand all | Expand 10 after
6168 return; 6169 return;
6169 6170
6170 Vector<RefPtr<Element> > associatedFormControls; 6171 Vector<RefPtr<Element> > associatedFormControls;
6171 copyToVector(m_associatedFormControls, associatedFormControls); 6172 copyToVector(m_associatedFormControls, associatedFormControls);
6172 6173
6173 frame()->page()->chrome()->client()->didAssociateFormControls(associatedForm Controls); 6174 frame()->page()->chrome()->client()->didAssociateFormControls(associatedForm Controls);
6174 m_associatedFormControls.clear(); 6175 m_associatedFormControls.clear();
6175 } 6176 }
6176 6177
6177 } // namespace WebCore 6178 } // namespace WebCore
OLDNEW
« no previous file with comments | « no previous file | Source/WebCore/loader/EmptyClients.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698