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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 #include "core/layout/LayoutPart.h" | 186 #include "core/layout/LayoutPart.h" |
187 #include "core/layout/LayoutView.h" | 187 #include "core/layout/LayoutView.h" |
188 #include "core/layout/TextAutosizer.h" | 188 #include "core/layout/TextAutosizer.h" |
189 #include "core/layout/api/LayoutPartItem.h" | 189 #include "core/layout/api/LayoutPartItem.h" |
190 #include "core/layout/api/LayoutViewItem.h" | 190 #include "core/layout/api/LayoutViewItem.h" |
191 #include "core/layout/compositing/PaintLayerCompositor.h" | 191 #include "core/layout/compositing/PaintLayerCompositor.h" |
192 #include "core/loader/CookieJar.h" | 192 #include "core/loader/CookieJar.h" |
193 #include "core/loader/DocumentLoader.h" | 193 #include "core/loader/DocumentLoader.h" |
194 #include "core/loader/FrameFetchContext.h" | 194 #include "core/loader/FrameFetchContext.h" |
195 #include "core/loader/FrameLoader.h" | 195 #include "core/loader/FrameLoader.h" |
196 #include "core/loader/ImageLoader.h" | |
197 #include "core/loader/NavigationScheduler.h" | 196 #include "core/loader/NavigationScheduler.h" |
198 #include "core/loader/PrerendererClient.h" | 197 #include "core/loader/PrerendererClient.h" |
199 #include "core/loader/appcache/ApplicationCacheHost.h" | 198 #include "core/loader/appcache/ApplicationCacheHost.h" |
200 #include "core/page/ChromeClient.h" | 199 #include "core/page/ChromeClient.h" |
201 #include "core/page/EventWithHitTestResults.h" | 200 #include "core/page/EventWithHitTestResults.h" |
202 #include "core/page/FocusController.h" | 201 #include "core/page/FocusController.h" |
203 #include "core/page/FrameTree.h" | 202 #include "core/page/FrameTree.h" |
204 #include "core/page/Page.h" | 203 #include "core/page/Page.h" |
205 #include "core/page/PointerLockController.h" | 204 #include "core/page/PointerLockController.h" |
206 #include "core/page/scrolling/RootScrollerController.h" | 205 #include "core/page/scrolling/RootScrollerController.h" |
(...skipping 2830 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3037 void Document::ImplicitClose() { | 3036 void Document::ImplicitClose() { |
3038 DCHECK(!InStyleRecalc()); | 3037 DCHECK(!InStyleRecalc()); |
3039 DCHECK(parser_); | 3038 DCHECK(parser_); |
3040 | 3039 |
3041 load_event_progress_ = kLoadEventInProgress; | 3040 load_event_progress_ = kLoadEventInProgress; |
3042 | 3041 |
3043 // We have to clear the parser, in case someone document.write()s from the | 3042 // We have to clear the parser, in case someone document.write()s from the |
3044 // onLoad event handler, as in Radar 3206524. | 3043 // onLoad event handler, as in Radar 3206524. |
3045 DetachParser(); | 3044 DetachParser(); |
3046 | 3045 |
3047 if (GetFrame() && CanExecuteScripts(kNotAboutToExecuteScript)) { | |
3048 ImageLoader::DispatchPendingLoadEvents(); | |
3049 ImageLoader::DispatchPendingErrorEvents(); | |
3050 } | |
3051 | |
3052 // JS running below could remove the frame or destroy the LayoutView so we | 3046 // JS running below could remove the frame or destroy the LayoutView so we |
3053 // call those two functions repeatedly and don't save them on the stack. | 3047 // call those two functions repeatedly and don't save them on the stack. |
3054 | 3048 |
3055 // To align the HTML load event and the SVGLoad event for the outermost <svg> | 3049 // To align the HTML load event and the SVGLoad event for the outermost <svg> |
3056 // element, fire it from here, instead of doing it from | 3050 // element, fire it from here, instead of doing it from |
3057 // SVGElement::finishedParsingChildren. | 3051 // SVGElement::finishedParsingChildren. |
3058 if (SvgExtensions()) | 3052 if (SvgExtensions()) |
3059 AccessSVGExtensions().DispatchSVGLoadEventToOutermostSVGElements(); | 3053 AccessSVGExtensions().DispatchSVGLoadEventToOutermostSVGElements(); |
3060 | 3054 |
3061 if (this->domWindow()) | 3055 if (this->domWindow()) |
(...skipping 3759 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6821 } | 6815 } |
6822 | 6816 |
6823 void showLiveDocumentInstances() { | 6817 void showLiveDocumentInstances() { |
6824 WeakDocumentSet& set = liveDocumentSet(); | 6818 WeakDocumentSet& set = liveDocumentSet(); |
6825 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 6819 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
6826 for (blink::Document* document : set) | 6820 for (blink::Document* document : set) |
6827 fprintf(stderr, "- Document %p URL: %s\n", document, | 6821 fprintf(stderr, "- Document %p URL: %s\n", document, |
6828 document->Url().GetString().Utf8().data()); | 6822 document->Url().GetString().Utf8().data()); |
6829 } | 6823 } |
6830 #endif | 6824 #endif |
OLD | NEW |