| 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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 #include "core/layout/TextAutosizer.h" | 177 #include "core/layout/TextAutosizer.h" |
| 178 #include "core/layout/compositing/PaintLayerCompositor.h" | 178 #include "core/layout/compositing/PaintLayerCompositor.h" |
| 179 #include "core/loader/CookieJar.h" | 179 #include "core/loader/CookieJar.h" |
| 180 #include "core/loader/DocumentLoader.h" | 180 #include "core/loader/DocumentLoader.h" |
| 181 #include "core/loader/FrameFetchContext.h" | 181 #include "core/loader/FrameFetchContext.h" |
| 182 #include "core/loader/FrameLoader.h" | 182 #include "core/loader/FrameLoader.h" |
| 183 #include "core/loader/FrameLoaderClient.h" | 183 #include "core/loader/FrameLoaderClient.h" |
| 184 #include "core/loader/ImageLoader.h" | 184 #include "core/loader/ImageLoader.h" |
| 185 #include "core/loader/NavigationScheduler.h" | 185 #include "core/loader/NavigationScheduler.h" |
| 186 #include "core/loader/appcache/ApplicationCacheHost.h" | 186 #include "core/loader/appcache/ApplicationCacheHost.h" |
| 187 #include "core/origin_trials/DocumentOriginTrialContext.h" |
| 187 #include "core/page/ChromeClient.h" | 188 #include "core/page/ChromeClient.h" |
| 188 #include "core/page/EventWithHitTestResults.h" | 189 #include "core/page/EventWithHitTestResults.h" |
| 189 #include "core/page/FocusController.h" | 190 #include "core/page/FocusController.h" |
| 190 #include "core/page/FrameTree.h" | 191 #include "core/page/FrameTree.h" |
| 191 #include "core/page/Page.h" | 192 #include "core/page/Page.h" |
| 192 #include "core/page/PointerLockController.h" | 193 #include "core/page/PointerLockController.h" |
| 193 #include "core/page/scrolling/ScrollingCoordinator.h" | 194 #include "core/page/scrolling/ScrollingCoordinator.h" |
| 194 #include "core/svg/SVGDocumentExtensions.h" | 195 #include "core/svg/SVGDocumentExtensions.h" |
| 195 #include "core/svg/SVGTitleElement.h" | 196 #include "core/svg/SVGTitleElement.h" |
| 196 #include "core/svg/SVGUseElement.h" | 197 #include "core/svg/SVGUseElement.h" |
| (...skipping 5718 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5915 return Platform::current()->currentThread()->scheduler()->timerTaskRunner(); | 5916 return Platform::current()->currentThread()->scheduler()->timerTaskRunner(); |
| 5916 } | 5917 } |
| 5917 | 5918 |
| 5918 void Document::enforceStrictMixedContentChecking() | 5919 void Document::enforceStrictMixedContentChecking() |
| 5919 { | 5920 { |
| 5920 securityContext().setShouldEnforceStrictMixedContentChecking(true); | 5921 securityContext().setShouldEnforceStrictMixedContentChecking(true); |
| 5921 if (frame()) | 5922 if (frame()) |
| 5922 frame()->loader().client()->didEnforceStrictMixedContentChecking(); | 5923 frame()->loader().client()->didEnforceStrictMixedContentChecking(); |
| 5923 } | 5924 } |
| 5924 | 5925 |
| 5926 OriginTrialContext* Document::originTrialContext() |
| 5927 { |
| 5928 if (!m_originTrialContext) { |
| 5929 m_originTrialContext = adoptPtr(new DocumentOriginTrialContext(this)); |
| 5930 } |
| 5931 return m_originTrialContext.get(); |
| 5932 } |
| 5933 |
| 5925 DEFINE_TRACE(Document) | 5934 DEFINE_TRACE(Document) |
| 5926 { | 5935 { |
| 5927 #if ENABLE(OILPAN) | 5936 #if ENABLE(OILPAN) |
| 5928 visitor->trace(m_importsController); | 5937 visitor->trace(m_importsController); |
| 5929 visitor->trace(m_docType); | 5938 visitor->trace(m_docType); |
| 5930 visitor->trace(m_implementation); | 5939 visitor->trace(m_implementation); |
| 5931 visitor->trace(m_autofocusElement); | 5940 visitor->trace(m_autofocusElement); |
| 5932 visitor->trace(m_focusedElement); | 5941 visitor->trace(m_focusedElement); |
| 5933 visitor->trace(m_sequentialFocusNavigationStartingPoint); | 5942 visitor->trace(m_sequentialFocusNavigationStartingPoint); |
| 5934 visitor->trace(m_hoverNode); | 5943 visitor->trace(m_hoverNode); |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5996 #ifndef NDEBUG | 6005 #ifndef NDEBUG |
| 5997 using namespace blink; | 6006 using namespace blink; |
| 5998 void showLiveDocumentInstances() | 6007 void showLiveDocumentInstances() |
| 5999 { | 6008 { |
| 6000 Document::WeakDocumentSet& set = Document::liveDocumentSet(); | 6009 Document::WeakDocumentSet& set = Document::liveDocumentSet(); |
| 6001 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 6010 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
| 6002 for (Document* document : set) | 6011 for (Document* document : set) |
| 6003 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str
ing().utf8().data()); | 6012 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str
ing().utf8().data()); |
| 6004 } | 6013 } |
| 6005 #endif | 6014 #endif |
| OLD | NEW |