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 2944 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2955 // Only imports on master documents can trigger rendering. | 2955 // Only imports on master documents can trigger rendering. |
2956 if (HTMLImportLoader* import = importLoader()) | 2956 if (HTMLImportLoader* import = importLoader()) |
2957 import->didRemoveAllPendingStylesheet(); | 2957 import->didRemoveAllPendingStylesheet(); |
2958 if (!haveImportsLoaded()) | 2958 if (!haveImportsLoaded()) |
2959 return; | 2959 return; |
2960 didLoadAllScriptBlockingResources(); | 2960 didLoadAllScriptBlockingResources(); |
2961 } | 2961 } |
2962 | 2962 |
2963 void Document::didLoadAllScriptBlockingResources() | 2963 void Document::didLoadAllScriptBlockingResources() |
2964 { | 2964 { |
2965 Platform::current()->currentThread()->scheduler()->postLoadingTask( | 2965 Platform::current()->currentThread()->scheduler()->loadingTaskRunner()->post
Task( |
2966 FROM_HERE, m_executeScriptsWaitingForResourcesTask.cancelAndCreate()); | 2966 FROM_HERE, m_executeScriptsWaitingForResourcesTask.cancelAndCreate()); |
2967 | 2967 |
2968 if (frame()) | 2968 if (frame()) |
2969 frame()->loader().client()->didRemoveAllPendingStylesheet(); | 2969 frame()->loader().client()->didRemoveAllPendingStylesheet(); |
2970 | 2970 |
2971 if (m_gotoAnchorNeededAfterStylesheetsLoad && view()) | 2971 if (m_gotoAnchorNeededAfterStylesheetsLoad && view()) |
2972 view()->processUrlFragment(m_url); | 2972 view()->processUrlFragment(m_url); |
2973 } | 2973 } |
2974 | 2974 |
2975 void Document::executeScriptsWaitingForResources() | 2975 void Document::executeScriptsWaitingForResources() |
(...skipping 2746 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5722 #ifndef NDEBUG | 5722 #ifndef NDEBUG |
5723 using namespace blink; | 5723 using namespace blink; |
5724 void showLiveDocumentInstances() | 5724 void showLiveDocumentInstances() |
5725 { | 5725 { |
5726 Document::WeakDocumentSet& set = Document::liveDocumentSet(); | 5726 Document::WeakDocumentSet& set = Document::liveDocumentSet(); |
5727 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 5727 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
5728 for (Document* document : set) | 5728 for (Document* document : set) |
5729 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str
ing().utf8().data()); | 5729 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str
ing().utf8().data()); |
5730 } | 5730 } |
5731 #endif | 5731 #endif |
OLD | NEW |