| 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 1787 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1798 for (Node& node : NodeTraversal::startsAt(this)) { | 1798 for (Node& node : NodeTraversal::startsAt(this)) { |
| 1799 node.removeAllEventListeners(); | 1799 node.removeAllEventListeners(); |
| 1800 for (ShadowRoot* root = node.youngestShadowRoot(); root; root = root->ol
derShadowRoot()) | 1800 for (ShadowRoot* root = node.youngestShadowRoot(); root; root = root->ol
derShadowRoot()) |
| 1801 root->removeAllEventListenersRecursively(); | 1801 root->removeAllEventListenersRecursively(); |
| 1802 } | 1802 } |
| 1803 } | 1803 } |
| 1804 | 1804 |
| 1805 using EventTargetDataMap = WillBeHeapHashMap<RawPtrWillBeWeakMember<Node>, OwnPt
rWillBeMember<EventTargetData>>; | 1805 using EventTargetDataMap = WillBeHeapHashMap<RawPtrWillBeWeakMember<Node>, OwnPt
rWillBeMember<EventTargetData>>; |
| 1806 static EventTargetDataMap& eventTargetDataMap() | 1806 static EventTargetDataMap& eventTargetDataMap() |
| 1807 { | 1807 { |
| 1808 DEFINE_STATIC_LOCAL(OwnPtrWillBePersistent<EventTargetDataMap>, map, (adoptP
trWillBeNoop(new EventTargetDataMap()))); | 1808 DEFINE_STATIC_LOCAL_NO_REGISTER(OwnPtrWillBePersistent<EventTargetDataMap>,
map, (adoptPtrWillBeNoop(new EventTargetDataMap()))); |
| 1809 return *map; | 1809 return *map; |
| 1810 } | 1810 } |
| 1811 | 1811 |
| 1812 EventTargetData* Node::eventTargetData() | 1812 EventTargetData* Node::eventTargetData() |
| 1813 { | 1813 { |
| 1814 return hasEventTargetData() ? eventTargetDataMap().get(this) : nullptr; | 1814 return hasEventTargetData() ? eventTargetDataMap().get(this) : nullptr; |
| 1815 } | 1815 } |
| 1816 | 1816 |
| 1817 EventTargetData& Node::ensureEventTargetData() | 1817 EventTargetData& Node::ensureEventTargetData() |
| 1818 { | 1818 { |
| (...skipping 550 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2369 | 2369 |
| 2370 void showNodePath(const blink::Node* node) | 2370 void showNodePath(const blink::Node* node) |
| 2371 { | 2371 { |
| 2372 if (node) | 2372 if (node) |
| 2373 node->showNodePathForThis(); | 2373 node->showNodePathForThis(); |
| 2374 else | 2374 else |
| 2375 fprintf(stderr, "Cannot showNodePath for (nil)\n"); | 2375 fprintf(stderr, "Cannot showNodePath for (nil)\n"); |
| 2376 } | 2376 } |
| 2377 | 2377 |
| 2378 #endif | 2378 #endif |
| OLD | NEW |