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 5921 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5932 | 5932 |
5933 if (order > m_shadowCascadeOrder) | 5933 if (order > m_shadowCascadeOrder) |
5934 m_shadowCascadeOrder = order; | 5934 m_shadowCascadeOrder = order; |
5935 } | 5935 } |
5936 | 5936 |
5937 LayoutViewItem Document::layoutViewItem() const | 5937 LayoutViewItem Document::layoutViewItem() const |
5938 { | 5938 { |
5939 return LayoutViewItem(m_layoutView); | 5939 return LayoutViewItem(m_layoutView); |
5940 } | 5940 } |
5941 | 5941 |
| 5942 void Document::purgeMemory() |
| 5943 { |
| 5944 m_styleEngine->purgeMemory(); |
| 5945 if (&axObjectCacheOwner() == this) |
| 5946 clearAXObjectCache(); |
| 5947 |
| 5948 if (m_fetcher) |
| 5949 m_fetcher->purgeMemory(); |
| 5950 |
| 5951 m_selectorQueryCache.reset(); |
| 5952 m_canvasFontCache.clear(); |
| 5953 m_mediaQueryMatcher.clear(); |
| 5954 } |
| 5955 |
5942 DEFINE_TRACE(Document) | 5956 DEFINE_TRACE(Document) |
5943 { | 5957 { |
5944 visitor->trace(m_importsController); | 5958 visitor->trace(m_importsController); |
5945 visitor->trace(m_docType); | 5959 visitor->trace(m_docType); |
5946 visitor->trace(m_implementation); | 5960 visitor->trace(m_implementation); |
5947 visitor->trace(m_autofocusElement); | 5961 visitor->trace(m_autofocusElement); |
5948 visitor->trace(m_focusedElement); | 5962 visitor->trace(m_focusedElement); |
5949 visitor->trace(m_sequentialFocusNavigationStartingPoint); | 5963 visitor->trace(m_sequentialFocusNavigationStartingPoint); |
5950 visitor->trace(m_hoverNode); | 5964 visitor->trace(m_hoverNode); |
5951 visitor->trace(m_activeHoverElement); | 5965 visitor->trace(m_activeHoverElement); |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6034 } | 6048 } |
6035 | 6049 |
6036 void showLiveDocumentInstances() | 6050 void showLiveDocumentInstances() |
6037 { | 6051 { |
6038 WeakDocumentSet& set = liveDocumentSet(); | 6052 WeakDocumentSet& set = liveDocumentSet(); |
6039 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 6053 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
6040 for (Document* document : set) | 6054 for (Document* document : set) |
6041 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().get
String().utf8().data()); | 6055 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().get
String().utf8().data()); |
6042 } | 6056 } |
6043 #endif | 6057 #endif |
OLD | NEW |