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 637 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
648 | 648 |
649 // keep track of what types of event listeners are registered, so we don't | 649 // keep track of what types of event listeners are registered, so we don't |
650 // dispatch events unnecessarily | 650 // dispatch events unnecessarily |
651 enum ListenerType { | 651 enum ListenerType { |
652 DOMSUBTREEMODIFIED_LISTENER = 1, | 652 DOMSUBTREEMODIFIED_LISTENER = 1, |
653 DOMNODEINSERTED_LISTENER = 1 << 1, | 653 DOMNODEINSERTED_LISTENER = 1 << 1, |
654 DOMNODEREMOVED_LISTENER = 1 << 2, | 654 DOMNODEREMOVED_LISTENER = 1 << 2, |
655 DOMNODEREMOVEDFROMDOCUMENT_LISTENER = 1 << 3, | 655 DOMNODEREMOVEDFROMDOCUMENT_LISTENER = 1 << 3, |
656 DOMNODEINSERTEDINTODOCUMENT_LISTENER = 1 << 4, | 656 DOMNODEINSERTEDINTODOCUMENT_LISTENER = 1 << 4, |
657 DOMCHARACTERDATAMODIFIED_LISTENER = 1 << 5, | 657 DOMCHARACTERDATAMODIFIED_LISTENER = 1 << 5, |
658 OVERFLOWCHANGED_LISTENER = 1 << 6, | 658 ANIMATIONEND_LISTENER = 1 << 6, |
659 ANIMATIONEND_LISTENER = 1 << 7, | 659 ANIMATIONSTART_LISTENER = 1 << 7, |
660 ANIMATIONSTART_LISTENER = 1 << 8, | 660 ANIMATIONITERATION_LISTENER = 1 << 8, |
661 ANIMATIONITERATION_LISTENER = 1 << 9, | 661 TRANSITIONEND_LISTENER = 1 << 9, |
662 TRANSITIONEND_LISTENER = 1 << 10, | 662 SCROLL_LISTENER = 1 << 10 |
663 SCROLL_LISTENER = 1 << 12 | 663 // 5 bits remaining |
664 // 4 bits remaining | |
665 }; | 664 }; |
666 | 665 |
667 bool hasListenerType(ListenerType listenerType) const { return (m_listenerTy
pes & listenerType); } | 666 bool hasListenerType(ListenerType listenerType) const { return (m_listenerTy
pes & listenerType); } |
668 void addListenerTypeIfNeeded(const AtomicString& eventType); | 667 void addListenerTypeIfNeeded(const AtomicString& eventType); |
669 | 668 |
670 bool hasMutationObserversOfType(MutationObserver::MutationType type) const | 669 bool hasMutationObserversOfType(MutationObserver::MutationType type) const |
671 { | 670 { |
672 return m_mutationObserverTypes & type; | 671 return m_mutationObserverTypes & type; |
673 } | 672 } |
674 bool hasMutationObservers() const { return m_mutationObserverTypes; } | 673 bool hasMutationObservers() const { return m_mutationObserverTypes; } |
(...skipping 755 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1430 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); | 1429 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); |
1431 | 1430 |
1432 } // namespace blink | 1431 } // namespace blink |
1433 | 1432 |
1434 #ifndef NDEBUG | 1433 #ifndef NDEBUG |
1435 // Outside the WebCore namespace for ease of invocation from gdb. | 1434 // Outside the WebCore namespace for ease of invocation from gdb. |
1436 CORE_EXPORT void showLiveDocumentInstances(); | 1435 CORE_EXPORT void showLiveDocumentInstances(); |
1437 #endif | 1436 #endif |
1438 | 1437 |
1439 #endif // Document_h | 1438 #endif // Document_h |
OLD | NEW |