Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(879)

Side by Side Diff: third_party/WebKit/Source/core/dom/Document.cpp

Issue 1770523002: Track connected subframes per-Document instead of per-Node. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix various crashes but still doesn't refcount tracked nodes (and needs to) Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 5958 matching lines...) Expand 10 before | Expand all | Expand 10 after
5969 visitor->trace(m_cssTarget); 5969 visitor->trace(m_cssTarget);
5970 visitor->trace(m_currentScriptStack); 5970 visitor->trace(m_currentScriptStack);
5971 visitor->trace(m_scriptRunner); 5971 visitor->trace(m_scriptRunner);
5972 visitor->trace(m_listsInvalidatedAtDocument); 5972 visitor->trace(m_listsInvalidatedAtDocument);
5973 for (int i = 0; i < numNodeListInvalidationTypes; ++i) 5973 for (int i = 0; i < numNodeListInvalidationTypes; ++i)
5974 visitor->trace(m_nodeLists[i]); 5974 visitor->trace(m_nodeLists[i]);
5975 visitor->trace(m_topLayerElements); 5975 visitor->trace(m_topLayerElements);
5976 visitor->trace(m_elemSheet); 5976 visitor->trace(m_elemSheet);
5977 visitor->trace(m_nodeIterators); 5977 visitor->trace(m_nodeIterators);
5978 visitor->trace(m_ranges); 5978 visitor->trace(m_ranges);
5979 visitor->trace(m_subframeTracker);
5979 visitor->trace(m_styleEngine); 5980 visitor->trace(m_styleEngine);
5980 visitor->trace(m_formController); 5981 visitor->trace(m_formController);
5981 visitor->trace(m_visitedLinkState); 5982 visitor->trace(m_visitedLinkState);
5982 visitor->trace(m_frame); 5983 visitor->trace(m_frame);
5983 visitor->trace(m_domWindow); 5984 visitor->trace(m_domWindow);
5984 visitor->trace(m_fetcher); 5985 visitor->trace(m_fetcher);
5985 visitor->trace(m_parser); 5986 visitor->trace(m_parser);
5986 visitor->trace(m_contextFeatures); 5987 visitor->trace(m_contextFeatures);
5987 visitor->trace(m_styleSheetList); 5988 visitor->trace(m_styleSheetList);
5988 visitor->trace(m_documentTiming); 5989 visitor->trace(m_documentTiming);
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
6025 #ifndef NDEBUG 6026 #ifndef NDEBUG
6026 using namespace blink; 6027 using namespace blink;
6027 void showLiveDocumentInstances() 6028 void showLiveDocumentInstances()
6028 { 6029 {
6029 Document::WeakDocumentSet& set = Document::liveDocumentSet(); 6030 Document::WeakDocumentSet& set = Document::liveDocumentSet();
6030 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); 6031 fprintf(stderr, "There are %u documents currently alive:\n", set.size());
6031 for (Document* document : set) 6032 for (Document* document : set)
6032 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().get String().utf8().data()); 6033 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().get String().utf8().data());
6033 } 6034 }
6034 #endif 6035 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.h ('k') | third_party/WebKit/Source/core/dom/Node.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698