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