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

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

Issue 1851743002: Simplify Supplementables post Oilpan. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix component build Created 4 years, 8 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 5938 matching lines...) Expand 10 before | Expand all | Expand 10 after
5949 return new DocumentOriginTrialContext(this); 5949 return new DocumentOriginTrialContext(this);
5950 } 5950 }
5951 5951
5952 LayoutViewItem Document::layoutViewItem() const 5952 LayoutViewItem Document::layoutViewItem() const
5953 { 5953 {
5954 return LayoutViewItem(m_layoutView); 5954 return LayoutViewItem(m_layoutView);
5955 } 5955 }
5956 5956
5957 DEFINE_TRACE(Document) 5957 DEFINE_TRACE(Document)
5958 { 5958 {
5959 #if ENABLE(OILPAN)
5960 visitor->trace(m_importsController); 5959 visitor->trace(m_importsController);
5961 visitor->trace(m_docType); 5960 visitor->trace(m_docType);
5962 visitor->trace(m_implementation); 5961 visitor->trace(m_implementation);
5963 visitor->trace(m_autofocusElement); 5962 visitor->trace(m_autofocusElement);
5964 visitor->trace(m_focusedElement); 5963 visitor->trace(m_focusedElement);
5965 visitor->trace(m_sequentialFocusNavigationStartingPoint); 5964 visitor->trace(m_sequentialFocusNavigationStartingPoint);
5966 visitor->trace(m_hoverNode); 5965 visitor->trace(m_hoverNode);
5967 visitor->trace(m_activeHoverElement); 5966 visitor->trace(m_activeHoverElement);
5968 visitor->trace(m_documentElement); 5967 visitor->trace(m_documentElement);
5969 visitor->trace(m_titleElement); 5968 visitor->trace(m_titleElement);
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
6005 visitor->trace(m_templateDocumentHost); 6004 visitor->trace(m_templateDocumentHost);
6006 visitor->trace(m_visibilityObservers); 6005 visitor->trace(m_visibilityObservers);
6007 visitor->trace(m_userActionElements); 6006 visitor->trace(m_userActionElements);
6008 visitor->trace(m_svgExtensions); 6007 visitor->trace(m_svgExtensions);
6009 visitor->trace(m_timeline); 6008 visitor->trace(m_timeline);
6010 visitor->trace(m_compositorPendingAnimations); 6009 visitor->trace(m_compositorPendingAnimations);
6011 visitor->trace(m_contextDocument); 6010 visitor->trace(m_contextDocument);
6012 visitor->trace(m_canvasFontCache); 6011 visitor->trace(m_canvasFontCache);
6013 visitor->trace(m_intersectionObserverController); 6012 visitor->trace(m_intersectionObserverController);
6014 visitor->trace(m_intersectionObserverData); 6013 visitor->trace(m_intersectionObserverData);
6015 HeapSupplementable<Document>::trace(visitor); 6014 Supplementable<Document>::trace(visitor);
6016 #endif
6017 TreeScope::trace(visitor); 6015 TreeScope::trace(visitor);
6018 ContainerNode::trace(visitor); 6016 ContainerNode::trace(visitor);
6019 ExecutionContext::trace(visitor); 6017 ExecutionContext::trace(visitor);
6020 DocumentLifecycleNotifier::trace(visitor); 6018 DocumentLifecycleNotifier::trace(visitor);
6021 SecurityContext::trace(visitor); 6019 SecurityContext::trace(visitor);
6022 } 6020 }
6023 6021
6024 template class CORE_TEMPLATE_EXPORT HeapSupplement<Document>; 6022 template class CORE_TEMPLATE_EXPORT Supplement<Document>;
6025 6023
6026 } // namespace blink 6024 } // namespace blink
6027 6025
6028 #ifndef NDEBUG 6026 #ifndef NDEBUG
6029 using namespace blink; 6027 using namespace blink;
6030 void showLiveDocumentInstances() 6028 void showLiveDocumentInstances()
6031 { 6029 {
6032 Document::WeakDocumentSet& set = Document::liveDocumentSet(); 6030 Document::WeakDocumentSet& set = Document::liveDocumentSet();
6033 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); 6031 fprintf(stderr, "There are %u documents currently alive:\n", set.size());
6034 for (Document* document : set) 6032 for (Document* document : set)
6035 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());
6036 } 6034 }
6037 #endif 6035 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.h ('k') | third_party/WebKit/Source/core/dom/ExecutionContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698