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

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

Issue 2269043002: Reland of Remove EventSender from HTMLStyleElement (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove t.step() Created 4 years, 1 month 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 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All
7 * rights reserved. 7 * rights reserved.
8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved.
9 * (http://www.torchmobile.com/) 9 * (http://www.torchmobile.com/)
10 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. 10 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved.
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 #include "core/html/HTMLDialogElement.h" 160 #include "core/html/HTMLDialogElement.h"
161 #include "core/html/HTMLDocument.h" 161 #include "core/html/HTMLDocument.h"
162 #include "core/html/HTMLFrameOwnerElement.h" 162 #include "core/html/HTMLFrameOwnerElement.h"
163 #include "core/html/HTMLHeadElement.h" 163 #include "core/html/HTMLHeadElement.h"
164 #include "core/html/HTMLHtmlElement.h" 164 #include "core/html/HTMLHtmlElement.h"
165 #include "core/html/HTMLIFrameElement.h" 165 #include "core/html/HTMLIFrameElement.h"
166 #include "core/html/HTMLInputElement.h" 166 #include "core/html/HTMLInputElement.h"
167 #include "core/html/HTMLLinkElement.h" 167 #include "core/html/HTMLLinkElement.h"
168 #include "core/html/HTMLMetaElement.h" 168 #include "core/html/HTMLMetaElement.h"
169 #include "core/html/HTMLScriptElement.h" 169 #include "core/html/HTMLScriptElement.h"
170 #include "core/html/HTMLStyleElement.h"
171 #include "core/html/HTMLTemplateElement.h" 170 #include "core/html/HTMLTemplateElement.h"
172 #include "core/html/HTMLTitleElement.h" 171 #include "core/html/HTMLTitleElement.h"
173 #include "core/html/PluginDocument.h" 172 #include "core/html/PluginDocument.h"
174 #include "core/html/WindowNameCollection.h" 173 #include "core/html/WindowNameCollection.h"
175 #include "core/html/canvas/CanvasContextCreationAttributes.h" 174 #include "core/html/canvas/CanvasContextCreationAttributes.h"
176 #include "core/html/canvas/CanvasFontCache.h" 175 #include "core/html/canvas/CanvasFontCache.h"
177 #include "core/html/canvas/CanvasRenderingContext.h" 176 #include "core/html/canvas/CanvasRenderingContext.h"
178 #include "core/html/forms/FormController.h" 177 #include "core/html/forms/FormController.h"
179 #include "core/html/imports/HTMLImportLoader.h" 178 #include "core/html/imports/HTMLImportLoader.h"
180 #include "core/html/imports/HTMLImportsController.h" 179 #include "core/html/imports/HTMLImportsController.h"
(...skipping 2635 matching lines...) Expand 10 before | Expand all | Expand 10 after
2816 ScriptableDocumentParser* parser = scriptableDocumentParser(); 2815 ScriptableDocumentParser* parser = scriptableDocumentParser();
2817 m_wellFormed = parser && parser->wellFormed(); 2816 m_wellFormed = parser && parser->wellFormed();
2818 2817
2819 // We have to clear the parser, in case someone document.write()s from the 2818 // We have to clear the parser, in case someone document.write()s from the
2820 // onLoad event handler, as in Radar 3206524. 2819 // onLoad event handler, as in Radar 3206524.
2821 detachParser(); 2820 detachParser();
2822 2821
2823 if (frame() && frame()->script().canExecuteScripts(NotAboutToExecuteScript)) { 2822 if (frame() && frame()->script().canExecuteScripts(NotAboutToExecuteScript)) {
2824 ImageLoader::dispatchPendingLoadEvents(); 2823 ImageLoader::dispatchPendingLoadEvents();
2825 ImageLoader::dispatchPendingErrorEvents(); 2824 ImageLoader::dispatchPendingErrorEvents();
2826
2827 HTMLStyleElement::dispatchPendingLoadEvents();
2828 } 2825 }
2829 2826
2830 // JS running below could remove the frame or destroy the LayoutView so we 2827 // JS running below could remove the frame or destroy the LayoutView so we
2831 // call those two functions repeatedly and don't save them on the stack. 2828 // call those two functions repeatedly and don't save them on the stack.
2832 2829
2833 // To align the HTML load event and the SVGLoad event for the outermost <svg> 2830 // To align the HTML load event and the SVGLoad event for the outermost <svg>
2834 // element, fire it from here, instead of doing it from 2831 // element, fire it from here, instead of doing it from
2835 // SVGElement::finishedParsingChildren. 2832 // SVGElement::finishedParsingChildren.
2836 if (svgExtensions()) 2833 if (svgExtensions())
2837 accessSVGExtensions().dispatchSVGLoadEventToOutermostSVGElements(); 2834 accessSVGExtensions().dispatchSVGLoadEventToOutermostSVGElements();
(...skipping 3643 matching lines...) Expand 10 before | Expand all | Expand 10 after
6481 } 6478 }
6482 6479
6483 void showLiveDocumentInstances() { 6480 void showLiveDocumentInstances() {
6484 WeakDocumentSet& set = liveDocumentSet(); 6481 WeakDocumentSet& set = liveDocumentSet();
6485 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); 6482 fprintf(stderr, "There are %u documents currently alive:\n", set.size());
6486 for (Document* document : set) 6483 for (Document* document : set)
6487 fprintf(stderr, "- Document %p URL: %s\n", document, 6484 fprintf(stderr, "- Document %p URL: %s\n", document,
6488 document->url().getString().utf8().data()); 6485 document->url().getString().utf8().data());
6489 } 6486 }
6490 #endif 6487 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698