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

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

Issue 296703009: Oilpan: move custom element objects to the heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 7 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 605 matching lines...) Expand 10 before | Expand all | Expand 10 after
616 m_activeHoverElement = nullptr; 616 m_activeHoverElement = nullptr;
617 m_titleElement = nullptr; 617 m_titleElement = nullptr;
618 m_documentElement = nullptr; 618 m_documentElement = nullptr;
619 m_contextFeatures = ContextFeatures::defaultSwitch(); 619 m_contextFeatures = ContextFeatures::defaultSwitch();
620 m_userActionElements.documentDidRemoveLastRef(); 620 m_userActionElements.documentDidRemoveLastRef();
621 m_associatedFormControls.clear(); 621 m_associatedFormControls.clear();
622 622
623 detachParser(); 623 detachParser();
624 #endif 624 #endif
625 625
626 m_registrationContext.clear(); 626 m_registrationContext.clear();
haraken 2014/05/22 08:24:10 Do we still need to clear m_registrationContext in
sof 2014/05/25 16:30:01 As long as we have a dispose() step, I don't think
627 627
628 if (m_importsController) { 628 if (m_importsController) {
629 m_importsController->wasDetachedFrom(*this); 629 m_importsController->wasDetachedFrom(*this);
630 m_importsController = 0; 630 m_importsController = 0;
631 } 631 }
632 632
633 #if !ENABLE(OILPAN) 633 #if !ENABLE(OILPAN)
634 // removeDetachedChildren() doesn't always unregister IDs, 634 // removeDetachedChildren() doesn't always unregister IDs,
635 // so tear down scope information upfront to avoid having stale references i n the map. 635 // so tear down scope information upfront to avoid having stale references i n the map.
636 destroyTreeScopeData(); 636 destroyTreeScopeData();
(...skipping 5107 matching lines...) Expand 10 before | Expand all | Expand 10 after
5744 visitor->trace(m_cssCanvasElements); 5744 visitor->trace(m_cssCanvasElements);
5745 visitor->trace(m_topLayerElements); 5745 visitor->trace(m_topLayerElements);
5746 visitor->trace(m_elemSheet); 5746 visitor->trace(m_elemSheet);
5747 visitor->trace(m_nodeIterators); 5747 visitor->trace(m_nodeIterators);
5748 visitor->trace(m_styleEngine); 5748 visitor->trace(m_styleEngine);
5749 visitor->trace(m_formController); 5749 visitor->trace(m_formController);
5750 visitor->trace(m_fetcher); 5750 visitor->trace(m_fetcher);
5751 visitor->trace(m_contextFeatures); 5751 visitor->trace(m_contextFeatures);
5752 visitor->trace(m_styleSheetList); 5752 visitor->trace(m_styleSheetList);
5753 visitor->trace(m_mediaQueryMatcher); 5753 visitor->trace(m_mediaQueryMatcher);
5754 visitor->trace(m_registrationContext);
5754 visitor->trace(m_associatedFormControls); 5755 visitor->trace(m_associatedFormControls);
5755 visitor->trace(m_templateDocument); 5756 visitor->trace(m_templateDocument);
5756 visitor->trace(m_templateDocumentHost); 5757 visitor->trace(m_templateDocumentHost);
5757 visitor->trace(m_visibilityObservers); 5758 visitor->trace(m_visibilityObservers);
5758 visitor->trace(m_userActionElements); 5759 visitor->trace(m_userActionElements);
5759 visitor->trace(m_svgExtensions); 5760 visitor->trace(m_svgExtensions);
5760 visitor->trace(m_timeline); 5761 visitor->trace(m_timeline);
5761 visitor->trace(m_compositorPendingAnimations); 5762 visitor->trace(m_compositorPendingAnimations);
5762 visitor->registerWeakMembers<Document, &Document::clearWeakMembers>(this); 5763 visitor->registerWeakMembers<Document, &Document::clearWeakMembers>(this);
5763 DocumentSupplementable::trace(visitor); 5764 DocumentSupplementable::trace(visitor);
5764 TreeScope::trace(visitor); 5765 TreeScope::trace(visitor);
5765 ContainerNode::trace(visitor); 5766 ContainerNode::trace(visitor);
5766 ExecutionContext::trace(visitor); 5767 ExecutionContext::trace(visitor);
5767 } 5768 }
5768 5769
5769 } // namespace WebCore 5770 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698