Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(567)

Side by Side Diff: Source/core/dom/Document.cpp

Issue 959643002: Remove the overflowchanged event with a runtime flag (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: tests Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 3831 matching lines...) Expand 10 before | Expand all | Expand 10 after
3842 addMutationEventListenerTypeIfEnabled(DOMNODEREMOVED_LISTENER); 3842 addMutationEventListenerTypeIfEnabled(DOMNODEREMOVED_LISTENER);
3843 } else if (eventType == EventTypeNames::DOMNodeRemovedFromDocument) { 3843 } else if (eventType == EventTypeNames::DOMNodeRemovedFromDocument) {
3844 UseCounter::count(*this, UseCounter::DOMNodeRemovedFromDocumentEvent); 3844 UseCounter::count(*this, UseCounter::DOMNodeRemovedFromDocumentEvent);
3845 addMutationEventListenerTypeIfEnabled(DOMNODEREMOVEDFROMDOCUMENT_LISTENE R); 3845 addMutationEventListenerTypeIfEnabled(DOMNODEREMOVEDFROMDOCUMENT_LISTENE R);
3846 } else if (eventType == EventTypeNames::DOMNodeInsertedIntoDocument) { 3846 } else if (eventType == EventTypeNames::DOMNodeInsertedIntoDocument) {
3847 UseCounter::count(*this, UseCounter::DOMNodeInsertedIntoDocumentEvent); 3847 UseCounter::count(*this, UseCounter::DOMNodeInsertedIntoDocumentEvent);
3848 addMutationEventListenerTypeIfEnabled(DOMNODEINSERTEDINTODOCUMENT_LISTEN ER); 3848 addMutationEventListenerTypeIfEnabled(DOMNODEINSERTEDINTODOCUMENT_LISTEN ER);
3849 } else if (eventType == EventTypeNames::DOMCharacterDataModified) { 3849 } else if (eventType == EventTypeNames::DOMCharacterDataModified) {
3850 UseCounter::count(*this, UseCounter::DOMCharacterDataModifiedEvent); 3850 UseCounter::count(*this, UseCounter::DOMCharacterDataModifiedEvent);
3851 addMutationEventListenerTypeIfEnabled(DOMCHARACTERDATAMODIFIED_LISTENER) ; 3851 addMutationEventListenerTypeIfEnabled(DOMCHARACTERDATAMODIFIED_LISTENER) ;
3852 } else if (eventType == EventTypeNames::overflowchanged) { 3852 } else if (eventType == EventTypeNames::overflowchanged && RuntimeEnabledFea tures::overflowChangedEventEnabled()) {
3853 UseCounter::countDeprecation(*this, UseCounter::OverflowChangedEvent); 3853 UseCounter::countDeprecation(*this, UseCounter::OverflowChangedEvent);
3854 addListenerType(OVERFLOWCHANGED_LISTENER); 3854 addListenerType(OVERFLOWCHANGED_LISTENER);
3855 } else if (eventType == EventTypeNames::webkitAnimationStart || (RuntimeEnab ledFeatures::cssAnimationUnprefixedEnabled() && eventType == EventTypeNames::ani mationstart)) { 3855 } else if (eventType == EventTypeNames::webkitAnimationStart || (RuntimeEnab ledFeatures::cssAnimationUnprefixedEnabled() && eventType == EventTypeNames::ani mationstart)) {
3856 addListenerType(ANIMATIONSTART_LISTENER); 3856 addListenerType(ANIMATIONSTART_LISTENER);
3857 } else if (eventType == EventTypeNames::webkitAnimationEnd || (RuntimeEnable dFeatures::cssAnimationUnprefixedEnabled() && eventType == EventTypeNames::anima tionend)) { 3857 } else if (eventType == EventTypeNames::webkitAnimationEnd || (RuntimeEnable dFeatures::cssAnimationUnprefixedEnabled() && eventType == EventTypeNames::anima tionend)) {
3858 addListenerType(ANIMATIONEND_LISTENER); 3858 addListenerType(ANIMATIONEND_LISTENER);
3859 } else if (eventType == EventTypeNames::webkitAnimationIteration || (Runtime EnabledFeatures::cssAnimationUnprefixedEnabled() && eventType == EventTypeNames: :animationiteration)) { 3859 } else if (eventType == EventTypeNames::webkitAnimationIteration || (Runtime EnabledFeatures::cssAnimationUnprefixedEnabled() && eventType == EventTypeNames: :animationiteration)) {
3860 addListenerType(ANIMATIONITERATION_LISTENER); 3860 addListenerType(ANIMATIONITERATION_LISTENER);
3861 if (view()) { 3861 if (view()) {
3862 // Need to re-evaluate time-to-effect-change for any running animati ons. 3862 // Need to re-evaluate time-to-effect-change for any running animati ons.
(...skipping 1885 matching lines...) Expand 10 before | Expand all | Expand 10 after
5748 #ifndef NDEBUG 5748 #ifndef NDEBUG
5749 using namespace blink; 5749 using namespace blink;
5750 void showLiveDocumentInstances() 5750 void showLiveDocumentInstances()
5751 { 5751 {
5752 WeakDocumentSet& set = liveDocumentSet(); 5752 WeakDocumentSet& set = liveDocumentSet();
5753 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); 5753 fprintf(stderr, "There are %u documents currently alive:\n", set.size());
5754 for (Document* document : set) 5754 for (Document* document : set)
5755 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str ing().utf8().data()); 5755 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str ing().utf8().data());
5756 } 5756 }
5757 #endif 5757 #endif
OLDNEW
« no previous file with comments | « LayoutTests/webexposed/global-interface-listing-expected.txt ('k') | Source/core/events/OverflowEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698