| 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, 2011, 2012 Apple Inc. All r
ights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 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) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. | 8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. |
| 9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
| 10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. | 10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. |
| (...skipping 3748 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3759 | 3759 |
| 3760 void Document::addMutationEventListenerTypeIfEnabled(ListenerType listenerType) | 3760 void Document::addMutationEventListenerTypeIfEnabled(ListenerType listenerType) |
| 3761 { | 3761 { |
| 3762 if (ContextFeatures::mutationEventsEnabled(this)) | 3762 if (ContextFeatures::mutationEventsEnabled(this)) |
| 3763 addListenerType(listenerType); | 3763 addListenerType(listenerType); |
| 3764 } | 3764 } |
| 3765 | 3765 |
| 3766 void Document::addListenerTypeIfNeeded(const AtomicString& eventType) | 3766 void Document::addListenerTypeIfNeeded(const AtomicString& eventType) |
| 3767 { | 3767 { |
| 3768 if (eventType == eventNames().DOMSubtreeModifiedEvent) { | 3768 if (eventType == eventNames().DOMSubtreeModifiedEvent) { |
| 3769 UseCounter::countDeprecation(this, UseCounter::DOMSubtreeModifiedEvent); | 3769 UseCounter::count(this, UseCounter::DOMSubtreeModifiedEvent); |
| 3770 addMutationEventListenerTypeIfEnabled(DOMSUBTREEMODIFIED_LISTENER); | 3770 addMutationEventListenerTypeIfEnabled(DOMSUBTREEMODIFIED_LISTENER); |
| 3771 } else if (eventType == eventNames().DOMNodeInsertedEvent) { | 3771 } else if (eventType == eventNames().DOMNodeInsertedEvent) { |
| 3772 UseCounter::countDeprecation(this, UseCounter::DOMNodeInsertedEvent); | 3772 UseCounter::count(this, UseCounter::DOMNodeInsertedEvent); |
| 3773 addMutationEventListenerTypeIfEnabled(DOMNODEINSERTED_LISTENER); | 3773 addMutationEventListenerTypeIfEnabled(DOMNODEINSERTED_LISTENER); |
| 3774 } else if (eventType == eventNames().DOMNodeRemovedEvent) { | 3774 } else if (eventType == eventNames().DOMNodeRemovedEvent) { |
| 3775 UseCounter::countDeprecation(this, UseCounter::DOMNodeRemovedEvent); | 3775 UseCounter::count(this, UseCounter::DOMNodeRemovedEvent); |
| 3776 addMutationEventListenerTypeIfEnabled(DOMNODEREMOVED_LISTENER); | 3776 addMutationEventListenerTypeIfEnabled(DOMNODEREMOVED_LISTENER); |
| 3777 } else if (eventType == eventNames().DOMNodeRemovedFromDocumentEvent) { | 3777 } else if (eventType == eventNames().DOMNodeRemovedFromDocumentEvent) { |
| 3778 UseCounter::countDeprecation(this, UseCounter::DOMNodeRemovedFromDocumen
tEvent); | 3778 UseCounter::count(this, UseCounter::DOMNodeRemovedFromDocumentEvent); |
| 3779 addMutationEventListenerTypeIfEnabled(DOMNODEREMOVEDFROMDOCUMENT_LISTENE
R); | 3779 addMutationEventListenerTypeIfEnabled(DOMNODEREMOVEDFROMDOCUMENT_LISTENE
R); |
| 3780 } else if (eventType == eventNames().DOMNodeInsertedIntoDocumentEvent) { | 3780 } else if (eventType == eventNames().DOMNodeInsertedIntoDocumentEvent) { |
| 3781 UseCounter::countDeprecation(this, UseCounter::DOMNodeInsertedIntoDocume
ntEvent); | 3781 UseCounter::count(this, UseCounter::DOMNodeInsertedIntoDocumentEvent); |
| 3782 addMutationEventListenerTypeIfEnabled(DOMNODEINSERTEDINTODOCUMENT_LISTEN
ER); | 3782 addMutationEventListenerTypeIfEnabled(DOMNODEINSERTEDINTODOCUMENT_LISTEN
ER); |
| 3783 } else if (eventType == eventNames().DOMCharacterDataModifiedEvent) { | 3783 } else if (eventType == eventNames().DOMCharacterDataModifiedEvent) { |
| 3784 UseCounter::countDeprecation(this, UseCounter::DOMCharacterDataModifiedE
vent); | 3784 UseCounter::count(this, UseCounter::DOMCharacterDataModifiedEvent); |
| 3785 addMutationEventListenerTypeIfEnabled(DOMCHARACTERDATAMODIFIED_LISTENER)
; | 3785 addMutationEventListenerTypeIfEnabled(DOMCHARACTERDATAMODIFIED_LISTENER)
; |
| 3786 } else if (eventType == eventNames().overflowchangedEvent) { | 3786 } else if (eventType == eventNames().overflowchangedEvent) { |
| 3787 addListenerType(OVERFLOWCHANGED_LISTENER); | 3787 addListenerType(OVERFLOWCHANGED_LISTENER); |
| 3788 } else if (eventType == eventNames().webkitAnimationStartEvent || (RuntimeEn
abledFeatures::cssAnimationUnprefixedEnabled() && eventType == eventNames().anim
ationstartEvent)) { | 3788 } else if (eventType == eventNames().webkitAnimationStartEvent || (RuntimeEn
abledFeatures::cssAnimationUnprefixedEnabled() && eventType == eventNames().anim
ationstartEvent)) { |
| 3789 addListenerType(ANIMATIONSTART_LISTENER); | 3789 addListenerType(ANIMATIONSTART_LISTENER); |
| 3790 } else if (eventType == eventNames().webkitAnimationEndEvent || (RuntimeEnab
ledFeatures::cssAnimationUnprefixedEnabled() && eventType == eventNames().animat
ionendEvent)) { | 3790 } else if (eventType == eventNames().webkitAnimationEndEvent || (RuntimeEnab
ledFeatures::cssAnimationUnprefixedEnabled() && eventType == eventNames().animat
ionendEvent)) { |
| 3791 addListenerType(ANIMATIONEND_LISTENER); | 3791 addListenerType(ANIMATIONEND_LISTENER); |
| 3792 } else if (eventType == eventNames().webkitAnimationIterationEvent || (Runti
meEnabledFeatures::cssAnimationUnprefixedEnabled() && eventType == eventNames().
animationiterationEvent)) { | 3792 } else if (eventType == eventNames().webkitAnimationIterationEvent || (Runti
meEnabledFeatures::cssAnimationUnprefixedEnabled() && eventType == eventNames().
animationiterationEvent)) { |
| 3793 addListenerType(ANIMATIONITERATION_LISTENER); | 3793 addListenerType(ANIMATIONITERATION_LISTENER); |
| 3794 } else if (eventType == eventNames().webkitTransitionEndEvent || eventType =
= eventNames().transitionendEvent) { | 3794 } else if (eventType == eventNames().webkitTransitionEndEvent || eventType =
= eventNames().transitionendEvent) { |
| (...skipping 1643 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5438 { | 5438 { |
| 5439 return DocumentLifecycleNotifier::create(this); | 5439 return DocumentLifecycleNotifier::create(this); |
| 5440 } | 5440 } |
| 5441 | 5441 |
| 5442 DocumentLifecycleNotifier* Document::lifecycleNotifier() | 5442 DocumentLifecycleNotifier* Document::lifecycleNotifier() |
| 5443 { | 5443 { |
| 5444 return static_cast<DocumentLifecycleNotifier*>(ScriptExecutionContext::lifec
ycleNotifier()); | 5444 return static_cast<DocumentLifecycleNotifier*>(ScriptExecutionContext::lifec
ycleNotifier()); |
| 5445 } | 5445 } |
| 5446 | 5446 |
| 5447 } // namespace WebCore | 5447 } // namespace WebCore |
| OLD | NEW |