| 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 5600 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5611 } | 5611 } |
| 5612 context = context->parentDocument(); | 5612 context = context->parentDocument(); |
| 5613 } | 5613 } |
| 5614 } | 5614 } |
| 5615 return true; | 5615 return true; |
| 5616 } | 5616 } |
| 5617 | 5617 |
| 5618 DEFINE_TRACE(Document) | 5618 DEFINE_TRACE(Document) |
| 5619 { | 5619 { |
| 5620 #if ENABLE(OILPAN) | 5620 #if ENABLE(OILPAN) |
| 5621 visitor->trace(m_compositorPendingAnimations); |
| 5621 visitor->trace(m_importsController); | 5622 visitor->trace(m_importsController); |
| 5622 visitor->trace(m_docType); | 5623 visitor->trace(m_docType); |
| 5623 visitor->trace(m_implementation); | 5624 visitor->trace(m_implementation); |
| 5624 visitor->trace(m_autofocusElement); | 5625 visitor->trace(m_autofocusElement); |
| 5625 visitor->trace(m_focusedElement); | 5626 visitor->trace(m_focusedElement); |
| 5626 visitor->trace(m_hoverNode); | 5627 visitor->trace(m_hoverNode); |
| 5627 visitor->trace(m_activeHoverElement); | 5628 visitor->trace(m_activeHoverElement); |
| 5628 visitor->trace(m_documentElement); | 5629 visitor->trace(m_documentElement); |
| 5629 visitor->trace(m_titleElement); | 5630 visitor->trace(m_titleElement); |
| 5630 visitor->trace(m_markers); | 5631 visitor->trace(m_markers); |
| (...skipping 26 matching lines...) Expand all Loading... |
| 5657 visitor->trace(m_associatedFormControls); | 5658 visitor->trace(m_associatedFormControls); |
| 5658 visitor->trace(m_useElementsNeedingUpdate); | 5659 visitor->trace(m_useElementsNeedingUpdate); |
| 5659 visitor->trace(m_layerUpdateSVGFilterElements); | 5660 visitor->trace(m_layerUpdateSVGFilterElements); |
| 5660 visitor->trace(m_timers); | 5661 visitor->trace(m_timers); |
| 5661 visitor->trace(m_templateDocument); | 5662 visitor->trace(m_templateDocument); |
| 5662 visitor->trace(m_templateDocumentHost); | 5663 visitor->trace(m_templateDocumentHost); |
| 5663 visitor->trace(m_visibilityObservers); | 5664 visitor->trace(m_visibilityObservers); |
| 5664 visitor->trace(m_userActionElements); | 5665 visitor->trace(m_userActionElements); |
| 5665 visitor->trace(m_svgExtensions); | 5666 visitor->trace(m_svgExtensions); |
| 5666 visitor->trace(m_timeline); | 5667 visitor->trace(m_timeline); |
| 5667 visitor->trace(m_compositorPendingAnimations); | |
| 5668 visitor->trace(m_contextDocument); | 5668 visitor->trace(m_contextDocument); |
| 5669 visitor->template registerWeakMembers<Document, &Document::clearWeakMembers>
(this); | 5669 visitor->template registerWeakMembers<Document, &Document::clearWeakMembers>
(this); |
| 5670 WillBeHeapSupplementable<Document>::trace(visitor); | 5670 WillBeHeapSupplementable<Document>::trace(visitor); |
| 5671 #endif | 5671 #endif |
| 5672 TreeScope::trace(visitor); | 5672 TreeScope::trace(visitor); |
| 5673 ContainerNode::trace(visitor); | 5673 ContainerNode::trace(visitor); |
| 5674 ExecutionContext::trace(visitor); | 5674 ExecutionContext::trace(visitor); |
| 5675 DocumentLifecycleNotifier::trace(visitor); | 5675 DocumentLifecycleNotifier::trace(visitor); |
| 5676 } | 5676 } |
| 5677 | 5677 |
| 5678 template class CORE_TEMPLATE_EXPORT WillBeHeapSupplement<Document>; | 5678 template class CORE_TEMPLATE_EXPORT WillBeHeapSupplement<Document>; |
| 5679 | 5679 |
| 5680 } // namespace blink | 5680 } // namespace blink |
| 5681 | 5681 |
| 5682 #ifndef NDEBUG | 5682 #ifndef NDEBUG |
| 5683 using namespace blink; | 5683 using namespace blink; |
| 5684 void showLiveDocumentInstances() | 5684 void showLiveDocumentInstances() |
| 5685 { | 5685 { |
| 5686 WeakDocumentSet& set = liveDocumentSet(); | 5686 WeakDocumentSet& set = liveDocumentSet(); |
| 5687 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 5687 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
| 5688 for (Document* document : set) | 5688 for (Document* document : set) |
| 5689 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str
ing().utf8().data()); | 5689 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str
ing().utf8().data()); |
| 5690 } | 5690 } |
| 5691 #endif | 5691 #endif |
| OLD | NEW |