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

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

Issue 307613002: Refine the UseCounters for DOMFocusIn/Out and focusin/out events (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: less wrong Created 6 years, 6 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
« no previous file with comments | « no previous file | Source/core/events/EventTarget.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 3945 matching lines...) Expand 10 before | Expand all | Expand 10 after
3956 } else if (eventType == EventTypeNames::webkitAnimationStart || (RuntimeEnab ledFeatures::cssAnimationUnprefixedEnabled() && eventType == EventTypeNames::ani mationstart)) { 3956 } else if (eventType == EventTypeNames::webkitAnimationStart || (RuntimeEnab ledFeatures::cssAnimationUnprefixedEnabled() && eventType == EventTypeNames::ani mationstart)) {
3957 addListenerType(ANIMATIONSTART_LISTENER); 3957 addListenerType(ANIMATIONSTART_LISTENER);
3958 } else if (eventType == EventTypeNames::webkitAnimationEnd || (RuntimeEnable dFeatures::cssAnimationUnprefixedEnabled() && eventType == EventTypeNames::anima tionend)) { 3958 } else if (eventType == EventTypeNames::webkitAnimationEnd || (RuntimeEnable dFeatures::cssAnimationUnprefixedEnabled() && eventType == EventTypeNames::anima tionend)) {
3959 addListenerType(ANIMATIONEND_LISTENER); 3959 addListenerType(ANIMATIONEND_LISTENER);
3960 } else if (eventType == EventTypeNames::webkitAnimationIteration || (Runtime EnabledFeatures::cssAnimationUnprefixedEnabled() && eventType == EventTypeNames: :animationiteration)) { 3960 } else if (eventType == EventTypeNames::webkitAnimationIteration || (Runtime EnabledFeatures::cssAnimationUnprefixedEnabled() && eventType == EventTypeNames: :animationiteration)) {
3961 addListenerType(ANIMATIONITERATION_LISTENER); 3961 addListenerType(ANIMATIONITERATION_LISTENER);
3962 } else if (eventType == EventTypeNames::webkitTransitionEnd || eventType == EventTypeNames::transitionend) { 3962 } else if (eventType == EventTypeNames::webkitTransitionEnd || eventType == EventTypeNames::transitionend) {
3963 addListenerType(TRANSITIONEND_LISTENER); 3963 addListenerType(TRANSITIONEND_LISTENER);
3964 } else if (eventType == EventTypeNames::scroll) { 3964 } else if (eventType == EventTypeNames::scroll) {
3965 addListenerType(SCROLL_LISTENER); 3965 addListenerType(SCROLL_LISTENER);
3966 } else if (eventType == EventTypeNames::DOMFocusIn || eventType == EventType Names::DOMFocusOut) {
3967 UseCounter::count(*this, UseCounter::DOMFocusInOutEvent);
3968 } 3966 }
3969 } 3967 }
3970 3968
3971 CSSStyleDeclaration* Document::getOverrideStyle(Element*, const String&) 3969 CSSStyleDeclaration* Document::getOverrideStyle(Element*, const String&)
3972 { 3970 {
3973 return 0; 3971 return 0;
3974 } 3972 }
3975 3973
3976 HTMLFrameOwnerElement* Document::ownerElement() const 3974 HTMLFrameOwnerElement* Document::ownerElement() const
3977 { 3975 {
(...skipping 1816 matching lines...) Expand 10 before | Expand all | Expand 10 after
5794 visitor->trace(m_timeline); 5792 visitor->trace(m_timeline);
5795 visitor->trace(m_compositorPendingAnimations); 5793 visitor->trace(m_compositorPendingAnimations);
5796 visitor->registerWeakMembers<Document, &Document::clearWeakMembers>(this); 5794 visitor->registerWeakMembers<Document, &Document::clearWeakMembers>(this);
5797 DocumentSupplementable::trace(visitor); 5795 DocumentSupplementable::trace(visitor);
5798 TreeScope::trace(visitor); 5796 TreeScope::trace(visitor);
5799 ContainerNode::trace(visitor); 5797 ContainerNode::trace(visitor);
5800 ExecutionContext::trace(visitor); 5798 ExecutionContext::trace(visitor);
5801 } 5799 }
5802 5800
5803 } // namespace WebCore 5801 } // namespace WebCore
OLDNEW
« no previous file with comments | « no previous file | Source/core/events/EventTarget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698