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, 2010, 2012 Apple Inc. All r
ights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 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) 2010 Nokia Corporation and/or its subsidiary(-ies) | 8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
9 * Copyright (C) 2011 Google Inc. All rights reserved. | 9 * Copyright (C) 2011 Google Inc. All rights reserved. |
10 * | 10 * |
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
423 | 423 |
424 // keep track of what types of event listeners are registered, so we don't | 424 // keep track of what types of event listeners are registered, so we don't |
425 // dispatch events unnecessarily | 425 // dispatch events unnecessarily |
426 enum ListenerType { | 426 enum ListenerType { |
427 DOMSUBTREEMODIFIED_LISTENER = 1, | 427 DOMSUBTREEMODIFIED_LISTENER = 1, |
428 DOMNODEINSERTED_LISTENER = 1 << 1, | 428 DOMNODEINSERTED_LISTENER = 1 << 1, |
429 DOMNODEREMOVED_LISTENER = 1 << 2, | 429 DOMNODEREMOVED_LISTENER = 1 << 2, |
430 DOMNODEREMOVEDFROMDOCUMENT_LISTENER = 1 << 3, | 430 DOMNODEREMOVEDFROMDOCUMENT_LISTENER = 1 << 3, |
431 DOMNODEINSERTEDINTODOCUMENT_LISTENER = 1 << 4, | 431 DOMNODEINSERTEDINTODOCUMENT_LISTENER = 1 << 4, |
432 DOMCHARACTERDATAMODIFIED_LISTENER = 1 << 5, | 432 DOMCHARACTERDATAMODIFIED_LISTENER = 1 << 5, |
433 OVERFLOWCHANGED_LISTENER = 1 << 6, | 433 ANIMATIONEND_LISTENER = 1 << 6, |
434 ANIMATIONEND_LISTENER = 1 << 7, | 434 ANIMATIONSTART_LISTENER = 1 << 7, |
435 ANIMATIONSTART_LISTENER = 1 << 8, | 435 ANIMATIONITERATION_LISTENER = 1 << 8, |
436 ANIMATIONITERATION_LISTENER = 1 << 9, | 436 TRANSITIONEND_LISTENER = 1 << 9, |
437 TRANSITIONEND_LISTENER = 1 << 10, | 437 SCROLL_LISTENER = 1 << 10, |
438 SCROLL_LISTENER = 1 << 12 | |
439 // 4 bits remaining | |
440 }; | 438 }; |
441 | 439 |
442 bool hasListenerType(ListenerType listenerType) const { return (m_listenerTy
pes & listenerType); } | 440 bool hasListenerType(ListenerType listenerType) const { return (m_listenerTy
pes & listenerType); } |
443 void addListenerTypeIfNeeded(const AtomicString& eventType); | 441 void addListenerTypeIfNeeded(const AtomicString& eventType); |
444 | 442 |
445 bool hasMutationObserversOfType(MutationObserver::MutationType type) const | 443 bool hasMutationObserversOfType(MutationObserver::MutationType type) const |
446 { | 444 { |
447 return m_mutationObserverTypes & type; | 445 return m_mutationObserverTypes & type; |
448 } | 446 } |
449 bool hasMutationObservers() const { return m_mutationObserverTypes; } | 447 bool hasMutationObservers() const { return m_mutationObserverTypes; } |
(...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
907 Node* eventTargetNodeForDocument(Document*); | 905 Node* eventTargetNodeForDocument(Document*); |
908 | 906 |
909 } // namespace blink | 907 } // namespace blink |
910 | 908 |
911 #ifndef NDEBUG | 909 #ifndef NDEBUG |
912 // Outside the WebCore namespace for ease of invocation from gdb. | 910 // Outside the WebCore namespace for ease of invocation from gdb. |
913 void showLiveDocumentInstances(); | 911 void showLiveDocumentInstances(); |
914 #endif | 912 #endif |
915 | 913 |
916 #endif // Document_h | 914 #endif // Document_h |
OLD | NEW |