| 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 1736 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1747 document().addMutationObserverTypes(registry->at(i)->mutationTypes()
); | 1747 document().addMutationObserverTypes(registry->at(i)->mutationTypes()
); |
| 1748 } | 1748 } |
| 1749 } | 1749 } |
| 1750 | 1750 |
| 1751 if (transientMutationObserverRegistry()) { | 1751 if (transientMutationObserverRegistry()) { |
| 1752 for (MutationObserverRegistration* registration : *transientMutationObse
rverRegistry()) | 1752 for (MutationObserverRegistration* registration : *transientMutationObse
rverRegistry()) |
| 1753 document().addMutationObserverTypes(registration->mutationTypes()); | 1753 document().addMutationObserverTypes(registration->mutationTypes()); |
| 1754 } | 1754 } |
| 1755 } | 1755 } |
| 1756 | 1756 |
| 1757 bool Node::addEventListenerInternal(const AtomicString& eventType, PassRefPtr<Ev
entListener> listener, const EventListenerOptions& options) | 1757 bool Node::addEventListenerInternal(const AtomicString& eventType, PassRefPtrWil
lBeRawPtr<EventListener> listener, const EventListenerOptions& options) |
| 1758 { | 1758 { |
| 1759 if (!EventTarget::addEventListenerInternal(eventType, listener, options)) | 1759 if (!EventTarget::addEventListenerInternal(eventType, listener, options)) |
| 1760 return false; | 1760 return false; |
| 1761 | 1761 |
| 1762 document().addListenerTypeIfNeeded(eventType); | 1762 document().addListenerTypeIfNeeded(eventType); |
| 1763 if (FrameHost* frameHost = document().frameHost()) | 1763 if (FrameHost* frameHost = document().frameHost()) |
| 1764 frameHost->eventHandlerRegistry().didAddEventHandler(*this, eventType); | 1764 frameHost->eventHandlerRegistry().didAddEventHandler(*this, eventType); |
| 1765 | 1765 |
| 1766 return true; | 1766 return true; |
| 1767 } | 1767 } |
| 1768 | 1768 |
| 1769 bool Node::removeEventListenerInternal(const AtomicString& eventType, PassRefPtr
<EventListener> listener, const EventListenerOptions& options) | 1769 bool Node::removeEventListenerInternal(const AtomicString& eventType, PassRefPtr
WillBeRawPtr<EventListener> listener, const EventListenerOptions& options) |
| 1770 { | 1770 { |
| 1771 if (!EventTarget::removeEventListenerInternal(eventType, listener, options)) | 1771 if (!EventTarget::removeEventListenerInternal(eventType, listener, options)) |
| 1772 return false; | 1772 return false; |
| 1773 | 1773 |
| 1774 // FIXME: Notify Document that the listener has vanished. We need to keep tr
ack of a number of | 1774 // FIXME: Notify Document that the listener has vanished. We need to keep tr
ack of a number of |
| 1775 // listeners for each type, not just a bool - see https://bugs.webkit.org/sh
ow_bug.cgi?id=33861 | 1775 // listeners for each type, not just a bool - see https://bugs.webkit.org/sh
ow_bug.cgi?id=33861 |
| 1776 if (FrameHost* frameHost = document().frameHost()) | 1776 if (FrameHost* frameHost = document().frameHost()) |
| 1777 frameHost->eventHandlerRegistry().didRemoveEventHandler(*this, eventType
); | 1777 frameHost->eventHandlerRegistry().didRemoveEventHandler(*this, eventType
); |
| 1778 | 1778 |
| 1779 return true; | 1779 return true; |
| (...skipping 584 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2364 | 2364 |
| 2365 void showNodePath(const blink::Node* node) | 2365 void showNodePath(const blink::Node* node) |
| 2366 { | 2366 { |
| 2367 if (node) | 2367 if (node) |
| 2368 node->showNodePathForThis(); | 2368 node->showNodePathForThis(); |
| 2369 else | 2369 else |
| 2370 fprintf(stderr, "Cannot showNodePath for (nil)\n"); | 2370 fprintf(stderr, "Cannot showNodePath for (nil)\n"); |
| 2371 } | 2371 } |
| 2372 | 2372 |
| 2373 #endif | 2373 #endif |
| OLD | NEW |