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 3746 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3757 #endif | 3757 #endif |
3758 if (list->isRootedAtTreeScope()) { | 3758 if (list->isRootedAtTreeScope()) { |
3759 ASSERT(m_listsInvalidatedAtDocument.contains(list)); | 3759 ASSERT(m_listsInvalidatedAtDocument.contains(list)); |
3760 m_listsInvalidatedAtDocument.remove(list); | 3760 m_listsInvalidatedAtDocument.remove(list); |
3761 } | 3761 } |
3762 } | 3762 } |
3763 | 3763 |
3764 void Document::registerNodeListWithIdNameCache(const LiveNodeListBase* list) | 3764 void Document::registerNodeListWithIdNameCache(const LiveNodeListBase* list) |
3765 { | 3765 { |
3766 #if ENABLE(OILPAN) | 3766 #if ENABLE(OILPAN) |
| 3767 ASSERT(!m_nodeLists[InvalidateOnIdNameAttrChange].contains(list)); |
3767 m_nodeLists[InvalidateOnIdNameAttrChange].add(list); | 3768 m_nodeLists[InvalidateOnIdNameAttrChange].add(list); |
3768 #else | 3769 #else |
3769 m_nodeListCounts[InvalidateOnIdNameAttrChange]++; | 3770 m_nodeListCounts[InvalidateOnIdNameAttrChange]++; |
3770 #endif | 3771 #endif |
3771 } | 3772 } |
3772 | 3773 |
3773 void Document::unregisterNodeListWithIdNameCache(const LiveNodeListBase* list) | 3774 void Document::unregisterNodeListWithIdNameCache(const LiveNodeListBase* list) |
3774 { | 3775 { |
3775 #if ENABLE(OILPAN) | 3776 #if ENABLE(OILPAN) |
3776 ASSERT(m_nodeLists[InvalidateOnIdNameAttrChange].contains(list)); | 3777 ASSERT(m_nodeLists[InvalidateOnIdNameAttrChange].contains(list)); |
(...skipping 2172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5949 #ifndef NDEBUG | 5950 #ifndef NDEBUG |
5950 using namespace blink; | 5951 using namespace blink; |
5951 void showLiveDocumentInstances() | 5952 void showLiveDocumentInstances() |
5952 { | 5953 { |
5953 Document::WeakDocumentSet& set = Document::liveDocumentSet(); | 5954 Document::WeakDocumentSet& set = Document::liveDocumentSet(); |
5954 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 5955 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
5955 for (Document* document : set) | 5956 for (Document* document : set) |
5956 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str
ing().utf8().data()); | 5957 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str
ing().utf8().data()); |
5957 } | 5958 } |
5958 #endif | 5959 #endif |
OLD | NEW |