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 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. |
6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) | 7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) |
8 * | 8 * |
9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
(...skipping 1860 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1871 | 1871 |
1872 void Node::removeAllEventListeners() | 1872 void Node::removeAllEventListeners() |
1873 { | 1873 { |
1874 if (hasEventListeners() && document().frameHost()) | 1874 if (hasEventListeners() && document().frameHost()) |
1875 document().frameHost()->eventHandlerRegistry().didRemoveAllEventHandlers
(*this); | 1875 document().frameHost()->eventHandlerRegistry().didRemoveAllEventHandlers
(*this); |
1876 EventTarget::removeAllEventListeners(); | 1876 EventTarget::removeAllEventListeners(); |
1877 } | 1877 } |
1878 | 1878 |
1879 void Node::removeAllEventListenersRecursively() | 1879 void Node::removeAllEventListenersRecursively() |
1880 { | 1880 { |
1881 for (Node& node : NodeTraversal::from(this)) { | 1881 for (Node& node : NodeTraversal::startsAt(this)) { |
1882 node.removeAllEventListeners(); | 1882 node.removeAllEventListeners(); |
1883 for (ShadowRoot* root = node.youngestShadowRoot(); root; root = root->ol
derShadowRoot()) | 1883 for (ShadowRoot* root = node.youngestShadowRoot(); root; root = root->ol
derShadowRoot()) |
1884 root->removeAllEventListenersRecursively(); | 1884 root->removeAllEventListenersRecursively(); |
1885 } | 1885 } |
1886 } | 1886 } |
1887 | 1887 |
1888 typedef WillBeHeapHashMap<RawPtrWillBeWeakMember<Node>, OwnPtr<EventTargetData>
> EventTargetDataMap; | 1888 typedef WillBeHeapHashMap<RawPtrWillBeWeakMember<Node>, OwnPtr<EventTargetData>
> EventTargetDataMap; |
1889 | 1889 |
1890 static EventTargetDataMap& eventTargetDataMap() | 1890 static EventTargetDataMap& eventTargetDataMap() |
1891 { | 1891 { |
(...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2463 node->showTreeForThis(); | 2463 node->showTreeForThis(); |
2464 } | 2464 } |
2465 | 2465 |
2466 void showNodePath(const blink::Node* node) | 2466 void showNodePath(const blink::Node* node) |
2467 { | 2467 { |
2468 if (node) | 2468 if (node) |
2469 node->showNodePathForThis(); | 2469 node->showNodePathForThis(); |
2470 } | 2470 } |
2471 | 2471 |
2472 #endif | 2472 #endif |
OLD | NEW |