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 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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 #include "core/layout/LayoutPart.h" | 176 #include "core/layout/LayoutPart.h" |
177 #include "core/layout/LayoutView.h" | 177 #include "core/layout/LayoutView.h" |
178 #include "core/layout/TextAutosizer.h" | 178 #include "core/layout/TextAutosizer.h" |
179 #include "core/layout/api/LayoutViewItem.h" | 179 #include "core/layout/api/LayoutViewItem.h" |
180 #include "core/layout/compositing/PaintLayerCompositor.h" | 180 #include "core/layout/compositing/PaintLayerCompositor.h" |
181 #include "core/loader/CookieJar.h" | 181 #include "core/loader/CookieJar.h" |
182 #include "core/loader/DocumentLoader.h" | 182 #include "core/loader/DocumentLoader.h" |
183 #include "core/loader/FrameFetchContext.h" | 183 #include "core/loader/FrameFetchContext.h" |
184 #include "core/loader/FrameLoader.h" | 184 #include "core/loader/FrameLoader.h" |
185 #include "core/loader/FrameLoaderClient.h" | 185 #include "core/loader/FrameLoaderClient.h" |
186 #include "core/loader/ImageLoader.h" | |
187 #include "core/loader/NavigationScheduler.h" | 186 #include "core/loader/NavigationScheduler.h" |
188 #include "core/loader/appcache/ApplicationCacheHost.h" | 187 #include "core/loader/appcache/ApplicationCacheHost.h" |
189 #include "core/origin_trials/DocumentOriginTrialContext.h" | 188 #include "core/origin_trials/DocumentOriginTrialContext.h" |
190 #include "core/page/ChromeClient.h" | 189 #include "core/page/ChromeClient.h" |
191 #include "core/page/EventWithHitTestResults.h" | 190 #include "core/page/EventWithHitTestResults.h" |
192 #include "core/page/FocusController.h" | 191 #include "core/page/FocusController.h" |
193 #include "core/page/FrameTree.h" | 192 #include "core/page/FrameTree.h" |
194 #include "core/page/Page.h" | 193 #include "core/page/Page.h" |
195 #include "core/page/PointerLockController.h" | 194 #include "core/page/PointerLockController.h" |
196 #include "core/page/scrolling/ScrollingCoordinator.h" | 195 #include "core/page/scrolling/ScrollingCoordinator.h" |
(...skipping 2477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2674 m_loadEventProgress = LoadEventInProgress; | 2673 m_loadEventProgress = LoadEventInProgress; |
2675 | 2674 |
2676 ScriptableDocumentParser* parser = scriptableDocumentParser(); | 2675 ScriptableDocumentParser* parser = scriptableDocumentParser(); |
2677 m_wellFormed = parser && parser->wellFormed(); | 2676 m_wellFormed = parser && parser->wellFormed(); |
2678 | 2677 |
2679 // We have to clear the parser, in case someone document.write()s from the | 2678 // We have to clear the parser, in case someone document.write()s from the |
2680 // onLoad event handler, as in Radar 3206524. | 2679 // onLoad event handler, as in Radar 3206524. |
2681 detachParser(); | 2680 detachParser(); |
2682 | 2681 |
2683 if (frame() && frame()->script().canExecuteScripts(NotAboutToExecuteScript))
{ | 2682 if (frame() && frame()->script().canExecuteScripts(NotAboutToExecuteScript))
{ |
2684 ImageLoader::dispatchPendingLoadEvents(); | |
2685 ImageLoader::dispatchPendingErrorEvents(); | |
2686 | |
2687 HTMLLinkElement::dispatchPendingLoadEvents(); | 2683 HTMLLinkElement::dispatchPendingLoadEvents(); |
2688 HTMLStyleElement::dispatchPendingLoadEvents(); | 2684 HTMLStyleElement::dispatchPendingLoadEvents(); |
2689 } | 2685 } |
2690 | 2686 |
2691 // JS running below could remove the frame or destroy the LayoutView so we c
all | 2687 // JS running below could remove the frame or destroy the LayoutView so we c
all |
2692 // those two functions repeatedly and don't save them on the stack. | 2688 // those two functions repeatedly and don't save them on the stack. |
2693 | 2689 |
2694 // To align the HTML load event and the SVGLoad event for the outermost <svg
> element, fire it from | 2690 // To align the HTML load event and the SVGLoad event for the outermost <svg
> element, fire it from |
2695 // here, instead of doing it from SVGElement::finishedParsingChildren. | 2691 // here, instead of doing it from SVGElement::finishedParsingChildren. |
2696 if (svgExtensions()) | 2692 if (svgExtensions()) |
(...skipping 3347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6044 #ifndef NDEBUG | 6040 #ifndef NDEBUG |
6045 using namespace blink; | 6041 using namespace blink; |
6046 void showLiveDocumentInstances() | 6042 void showLiveDocumentInstances() |
6047 { | 6043 { |
6048 Document::WeakDocumentSet& set = Document::liveDocumentSet(); | 6044 Document::WeakDocumentSet& set = Document::liveDocumentSet(); |
6049 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 6045 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
6050 for (Document* document : set) | 6046 for (Document* document : set) |
6051 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().get
String().utf8().data()); | 6047 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().get
String().utf8().data()); |
6052 } | 6048 } |
6053 #endif | 6049 #endif |
OLD | NEW |