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

Side by Side Diff: third_party/WebKit/Source/core/dom/Document.cpp

Issue 2275493002: Remove EventSender from HTMLLinkElement (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use TaskRunnerHelper Created 4 years, 3 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
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 2598 matching lines...) Expand 10 before | Expand all | Expand 10 after
2609 m_wellFormed = parser && parser->wellFormed(); 2609 m_wellFormed = parser && parser->wellFormed();
2610 2610
2611 // We have to clear the parser, in case someone document.write()s from the 2611 // We have to clear the parser, in case someone document.write()s from the
2612 // onLoad event handler, as in Radar 3206524. 2612 // onLoad event handler, as in Radar 3206524.
2613 detachParser(); 2613 detachParser();
2614 2614
2615 if (frame() && frame()->script().canExecuteScripts(NotAboutToExecuteScript)) { 2615 if (frame() && frame()->script().canExecuteScripts(NotAboutToExecuteScript)) {
2616 ImageLoader::dispatchPendingLoadEvents(); 2616 ImageLoader::dispatchPendingLoadEvents();
2617 ImageLoader::dispatchPendingErrorEvents(); 2617 ImageLoader::dispatchPendingErrorEvents();
2618 2618
2619 HTMLLinkElement::dispatchPendingLoadEvents();
2620 HTMLStyleElement::dispatchPendingLoadEvents(); 2619 HTMLStyleElement::dispatchPendingLoadEvents();
2621 } 2620 }
2622 2621
2623 // JS running below could remove the frame or destroy the LayoutView so we c all 2622 // JS running below could remove the frame or destroy the LayoutView so we c all
2624 // those two functions repeatedly and don't save them on the stack. 2623 // those two functions repeatedly and don't save them on the stack.
2625 2624
2626 // To align the HTML load event and the SVGLoad event for the outermost <svg > element, fire it from 2625 // To align the HTML load event and the SVGLoad event for the outermost <svg > element, fire it from
2627 // here, instead of doing it from SVGElement::finishedParsingChildren. 2626 // here, instead of doing it from SVGElement::finishedParsingChildren.
2628 if (svgExtensions()) 2627 if (svgExtensions())
2629 accessSVGExtensions().dispatchSVGLoadEventToOutermostSVGElements(); 2628 accessSVGExtensions().dispatchSVGLoadEventToOutermostSVGElements();
(...skipping 3419 matching lines...) Expand 10 before | Expand all | Expand 10 after
6049 } 6048 }
6050 6049
6051 void showLiveDocumentInstances() 6050 void showLiveDocumentInstances()
6052 { 6051 {
6053 WeakDocumentSet& set = liveDocumentSet(); 6052 WeakDocumentSet& set = liveDocumentSet();
6054 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); 6053 fprintf(stderr, "There are %u documents currently alive:\n", set.size());
6055 for (Document* document : set) 6054 for (Document* document : set)
6056 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().get String().utf8().data()); 6055 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().get String().utf8().data());
6057 } 6056 }
6058 #endif 6057 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698