| 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 5638 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5649 // FIXME: Oilpan: Use a weak counted set instead. | 5649 // FIXME: Oilpan: Use a weak counted set instead. |
| 5650 if (m_touchEventTargets) { | 5650 if (m_touchEventTargets) { |
| 5651 Vector<Node*> deadNodes; | 5651 Vector<Node*> deadNodes; |
| 5652 for (TouchEventTargetSet::iterator it = m_touchEventTargets->begin(); it
!= m_touchEventTargets->end(); ++it) { | 5652 for (TouchEventTargetSet::iterator it = m_touchEventTargets->begin(); it
!= m_touchEventTargets->end(); ++it) { |
| 5653 if (!visitor->isAlive(it->key)) | 5653 if (!visitor->isAlive(it->key)) |
| 5654 deadNodes.append(it->key); | 5654 deadNodes.append(it->key); |
| 5655 } | 5655 } |
| 5656 for (unsigned i = 0; i < deadNodes.size(); ++i) | 5656 for (unsigned i = 0; i < deadNodes.size(); ++i) |
| 5657 didClearTouchEventHandlers(deadNodes[i]); | 5657 didClearTouchEventHandlers(deadNodes[i]); |
| 5658 } | 5658 } |
| 5659 | |
| 5660 EventHandlerRegistry* registry = static_cast<EventHandlerRegistry*>(Document
Supplement::from(this, EventHandlerRegistry::supplementName())); | |
| 5661 // FIXME: Oilpan: This is pretty funky. The current code disables all modifi
cations of the | |
| 5662 // EventHandlerRegistry when the document becomes inactive. To keep that beh
avior we only | |
| 5663 // perform weak processing of the registry when the document is active. | |
| 5664 if (registry && isActive()) | |
| 5665 registry->clearWeakMembers(visitor); | |
| 5666 } | 5659 } |
| 5667 | 5660 |
| 5668 void Document::trace(Visitor* visitor) | 5661 void Document::trace(Visitor* visitor) |
| 5669 { | 5662 { |
| 5670 visitor->trace(m_styleSheetList); | 5663 visitor->trace(m_styleSheetList); |
| 5671 visitor->trace(m_visibilityObservers); | 5664 visitor->trace(m_visibilityObservers); |
| 5672 visitor->registerWeakMembers<Document, &Document::clearWeakMembers>(this); | 5665 visitor->registerWeakMembers<Document, &Document::clearWeakMembers>(this); |
| 5673 Supplementable<Document>::trace(visitor); | 5666 DocumentSupplementable::trace(visitor); |
| 5674 TreeScope::trace(visitor); | 5667 TreeScope::trace(visitor); |
| 5675 ContainerNode::trace(visitor); | 5668 ContainerNode::trace(visitor); |
| 5676 } | 5669 } |
| 5677 | 5670 |
| 5678 } // namespace WebCore | 5671 } // namespace WebCore |
| OLD | NEW |