| 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 * (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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 #include "core/html/HTMLDialogElement.h" | 159 #include "core/html/HTMLDialogElement.h" |
| 160 #include "core/html/HTMLDocument.h" | 160 #include "core/html/HTMLDocument.h" |
| 161 #include "core/html/HTMLFrameOwnerElement.h" | 161 #include "core/html/HTMLFrameOwnerElement.h" |
| 162 #include "core/html/HTMLHeadElement.h" | 162 #include "core/html/HTMLHeadElement.h" |
| 163 #include "core/html/HTMLHtmlElement.h" | 163 #include "core/html/HTMLHtmlElement.h" |
| 164 #include "core/html/HTMLIFrameElement.h" | 164 #include "core/html/HTMLIFrameElement.h" |
| 165 #include "core/html/HTMLInputElement.h" | 165 #include "core/html/HTMLInputElement.h" |
| 166 #include "core/html/HTMLLinkElement.h" | 166 #include "core/html/HTMLLinkElement.h" |
| 167 #include "core/html/HTMLMetaElement.h" | 167 #include "core/html/HTMLMetaElement.h" |
| 168 #include "core/html/HTMLScriptElement.h" | 168 #include "core/html/HTMLScriptElement.h" |
| 169 #include "core/html/HTMLStyleElement.h" |
| 169 #include "core/html/HTMLTemplateElement.h" | 170 #include "core/html/HTMLTemplateElement.h" |
| 170 #include "core/html/HTMLTitleElement.h" | 171 #include "core/html/HTMLTitleElement.h" |
| 171 #include "core/html/PluginDocument.h" | 172 #include "core/html/PluginDocument.h" |
| 172 #include "core/html/WindowNameCollection.h" | 173 #include "core/html/WindowNameCollection.h" |
| 173 #include "core/html/canvas/CanvasContextCreationAttributes.h" | 174 #include "core/html/canvas/CanvasContextCreationAttributes.h" |
| 174 #include "core/html/canvas/CanvasFontCache.h" | 175 #include "core/html/canvas/CanvasFontCache.h" |
| 175 #include "core/html/canvas/CanvasRenderingContext.h" | 176 #include "core/html/canvas/CanvasRenderingContext.h" |
| 176 #include "core/html/forms/FormController.h" | 177 #include "core/html/forms/FormController.h" |
| 177 #include "core/html/imports/HTMLImportLoader.h" | 178 #include "core/html/imports/HTMLImportLoader.h" |
| 178 #include "core/html/imports/HTMLImportsController.h" | 179 #include "core/html/imports/HTMLImportsController.h" |
| (...skipping 2633 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2812 ScriptableDocumentParser* parser = scriptableDocumentParser(); | 2813 ScriptableDocumentParser* parser = scriptableDocumentParser(); |
| 2813 m_wellFormed = parser && parser->wellFormed(); | 2814 m_wellFormed = parser && parser->wellFormed(); |
| 2814 | 2815 |
| 2815 // We have to clear the parser, in case someone document.write()s from the | 2816 // We have to clear the parser, in case someone document.write()s from the |
| 2816 // onLoad event handler, as in Radar 3206524. | 2817 // onLoad event handler, as in Radar 3206524. |
| 2817 detachParser(); | 2818 detachParser(); |
| 2818 | 2819 |
| 2819 if (frame() && frame()->script().canExecuteScripts(NotAboutToExecuteScript)) { | 2820 if (frame() && frame()->script().canExecuteScripts(NotAboutToExecuteScript)) { |
| 2820 ImageLoader::dispatchPendingLoadEvents(); | 2821 ImageLoader::dispatchPendingLoadEvents(); |
| 2821 ImageLoader::dispatchPendingErrorEvents(); | 2822 ImageLoader::dispatchPendingErrorEvents(); |
| 2823 |
| 2824 HTMLStyleElement::dispatchPendingLoadEvents(); |
| 2822 } | 2825 } |
| 2823 | 2826 |
| 2824 // 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 |
| 2825 // 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. |
| 2826 | 2829 |
| 2827 // 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> |
| 2828 // element, fire it from here, instead of doing it from | 2831 // element, fire it from here, instead of doing it from |
| 2829 // SVGElement::finishedParsingChildren. | 2832 // SVGElement::finishedParsingChildren. |
| 2830 if (svgExtensions()) | 2833 if (svgExtensions()) |
| 2831 accessSVGExtensions().dispatchSVGLoadEventToOutermostSVGElements(); | 2834 accessSVGExtensions().dispatchSVGLoadEventToOutermostSVGElements(); |
| (...skipping 3643 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6475 } | 6478 } |
| 6476 | 6479 |
| 6477 void showLiveDocumentInstances() { | 6480 void showLiveDocumentInstances() { |
| 6478 WeakDocumentSet& set = liveDocumentSet(); | 6481 WeakDocumentSet& set = liveDocumentSet(); |
| 6479 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 6482 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
| 6480 for (Document* document : set) | 6483 for (Document* document : set) |
| 6481 fprintf(stderr, "- Document %p URL: %s\n", document, | 6484 fprintf(stderr, "- Document %p URL: %s\n", document, |
| 6482 document->url().getString().utf8().data()); | 6485 document->url().getString().utf8().data()); |
| 6483 } | 6486 } |
| 6484 #endif | 6487 #endif |
| OLD | NEW |