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 5852 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5863 return Platform::current()->currentThread()->scheduler()->timerTaskRunner(); | 5863 return Platform::current()->currentThread()->scheduler()->timerTaskRunner(); |
5864 } | 5864 } |
5865 | 5865 |
5866 void Document::enforceStrictMixedContentChecking() | 5866 void Document::enforceStrictMixedContentChecking() |
5867 { | 5867 { |
5868 securityContext().setShouldEnforceStrictMixedContentChecking(true); | 5868 securityContext().setShouldEnforceStrictMixedContentChecking(true); |
5869 if (frame()) | 5869 if (frame()) |
5870 frame()->loader().client()->didEnforceStrictMixedContentChecking(); | 5870 frame()->loader().client()->didEnforceStrictMixedContentChecking(); |
5871 } | 5871 } |
5872 | 5872 |
| 5873 void Document::purgeMemory(DeviceKind deviceKind) |
| 5874 { |
| 5875 m_styleEngine->purgeMemory(deviceKind); |
| 5876 if (&axObjectCacheOwner() == this) |
| 5877 clearAXObjectCache(); |
| 5878 if (m_fetcher) |
| 5879 m_fetcher->purgeMemory(); |
| 5880 m_selectorQueryCache.clear(); |
| 5881 m_canvasFontCache.clear(); |
| 5882 m_mediaQueryMatcher.clear(); |
| 5883 } |
| 5884 |
5873 DEFINE_TRACE(Document) | 5885 DEFINE_TRACE(Document) |
5874 { | 5886 { |
5875 #if ENABLE(OILPAN) | 5887 #if ENABLE(OILPAN) |
5876 visitor->trace(m_importsController); | 5888 visitor->trace(m_importsController); |
5877 visitor->trace(m_docType); | 5889 visitor->trace(m_docType); |
5878 visitor->trace(m_implementation); | 5890 visitor->trace(m_implementation); |
5879 visitor->trace(m_autofocusElement); | 5891 visitor->trace(m_autofocusElement); |
5880 visitor->trace(m_focusedElement); | 5892 visitor->trace(m_focusedElement); |
5881 visitor->trace(m_hoverNode); | 5893 visitor->trace(m_hoverNode); |
5882 visitor->trace(m_activeHoverElement); | 5894 visitor->trace(m_activeHoverElement); |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5943 #ifndef NDEBUG | 5955 #ifndef NDEBUG |
5944 using namespace blink; | 5956 using namespace blink; |
5945 void showLiveDocumentInstances() | 5957 void showLiveDocumentInstances() |
5946 { | 5958 { |
5947 Document::WeakDocumentSet& set = Document::liveDocumentSet(); | 5959 Document::WeakDocumentSet& set = Document::liveDocumentSet(); |
5948 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 5960 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
5949 for (Document* document : set) | 5961 for (Document* document : set) |
5950 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str
ing().utf8().data()); | 5962 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str
ing().utf8().data()); |
5951 } | 5963 } |
5952 #endif | 5964 #endif |
OLD | NEW |