| 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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 #include "core/layout/LayoutPart.h" | 187 #include "core/layout/LayoutPart.h" |
| 188 #include "core/layout/LayoutView.h" | 188 #include "core/layout/LayoutView.h" |
| 189 #include "core/layout/TextAutosizer.h" | 189 #include "core/layout/TextAutosizer.h" |
| 190 #include "core/layout/api/LayoutPartItem.h" | 190 #include "core/layout/api/LayoutPartItem.h" |
| 191 #include "core/layout/api/LayoutViewItem.h" | 191 #include "core/layout/api/LayoutViewItem.h" |
| 192 #include "core/layout/compositing/PaintLayerCompositor.h" | 192 #include "core/layout/compositing/PaintLayerCompositor.h" |
| 193 #include "core/loader/CookieJar.h" | 193 #include "core/loader/CookieJar.h" |
| 194 #include "core/loader/DocumentLoader.h" | 194 #include "core/loader/DocumentLoader.h" |
| 195 #include "core/loader/FrameFetchContext.h" | 195 #include "core/loader/FrameFetchContext.h" |
| 196 #include "core/loader/FrameLoader.h" | 196 #include "core/loader/FrameLoader.h" |
| 197 #include "core/loader/ImageLoader.h" | |
| 198 #include "core/loader/NavigationScheduler.h" | 197 #include "core/loader/NavigationScheduler.h" |
| 199 #include "core/loader/PrerendererClient.h" | 198 #include "core/loader/PrerendererClient.h" |
| 200 #include "core/loader/appcache/ApplicationCacheHost.h" | 199 #include "core/loader/appcache/ApplicationCacheHost.h" |
| 201 #include "core/page/ChromeClient.h" | 200 #include "core/page/ChromeClient.h" |
| 202 #include "core/page/EventWithHitTestResults.h" | 201 #include "core/page/EventWithHitTestResults.h" |
| 203 #include "core/page/FocusController.h" | 202 #include "core/page/FocusController.h" |
| 204 #include "core/page/FrameTree.h" | 203 #include "core/page/FrameTree.h" |
| 205 #include "core/page/Page.h" | 204 #include "core/page/Page.h" |
| 206 #include "core/page/PointerLockController.h" | 205 #include "core/page/PointerLockController.h" |
| 207 #include "core/page/scrolling/RootScrollerController.h" | 206 #include "core/page/scrolling/RootScrollerController.h" |
| (...skipping 2800 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3008 | 3007 |
| 3009 load_event_progress_ = kLoadEventInProgress; | 3008 load_event_progress_ = kLoadEventInProgress; |
| 3010 | 3009 |
| 3011 ScriptableDocumentParser* parser = GetScriptableDocumentParser(); | 3010 ScriptableDocumentParser* parser = GetScriptableDocumentParser(); |
| 3012 well_formed_ = parser && parser->WellFormed(); | 3011 well_formed_ = parser && parser->WellFormed(); |
| 3013 | 3012 |
| 3014 // We have to clear the parser, in case someone document.write()s from the | 3013 // We have to clear the parser, in case someone document.write()s from the |
| 3015 // onLoad event handler, as in Radar 3206524. | 3014 // onLoad event handler, as in Radar 3206524. |
| 3016 DetachParser(); | 3015 DetachParser(); |
| 3017 | 3016 |
| 3018 if (GetFrame() && CanExecuteScripts(kNotAboutToExecuteScript)) { | |
| 3019 ImageLoader::DispatchPendingLoadEvents(); | |
| 3020 ImageLoader::DispatchPendingErrorEvents(); | |
| 3021 } | |
| 3022 | |
| 3023 // JS running below could remove the frame or destroy the LayoutView so we | 3017 // JS running below could remove the frame or destroy the LayoutView so we |
| 3024 // call those two functions repeatedly and don't save them on the stack. | 3018 // call those two functions repeatedly and don't save them on the stack. |
| 3025 | 3019 |
| 3026 // To align the HTML load event and the SVGLoad event for the outermost <svg> | 3020 // To align the HTML load event and the SVGLoad event for the outermost <svg> |
| 3027 // element, fire it from here, instead of doing it from | 3021 // element, fire it from here, instead of doing it from |
| 3028 // SVGElement::finishedParsingChildren. | 3022 // SVGElement::finishedParsingChildren. |
| 3029 if (SvgExtensions()) | 3023 if (SvgExtensions()) |
| 3030 AccessSVGExtensions().DispatchSVGLoadEventToOutermostSVGElements(); | 3024 AccessSVGExtensions().DispatchSVGLoadEventToOutermostSVGElements(); |
| 3031 | 3025 |
| 3032 if (this->domWindow()) | 3026 if (this->domWindow()) |
| (...skipping 3748 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6781 } | 6775 } |
| 6782 | 6776 |
| 6783 void showLiveDocumentInstances() { | 6777 void showLiveDocumentInstances() { |
| 6784 WeakDocumentSet& set = liveDocumentSet(); | 6778 WeakDocumentSet& set = liveDocumentSet(); |
| 6785 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 6779 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
| 6786 for (blink::Document* document : set) | 6780 for (blink::Document* document : set) |
| 6787 fprintf(stderr, "- Document %p URL: %s\n", document, | 6781 fprintf(stderr, "- Document %p URL: %s\n", document, |
| 6788 document->Url().GetString().Utf8().data()); | 6782 document->Url().GetString().Utf8().data()); |
| 6789 } | 6783 } |
| 6790 #endif | 6784 #endif |
| OLD | NEW |