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

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

Issue 749273002: Add a UseCounter for Document.getOverrideStyle() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years 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 | « Source/core/dom/Document.h ('k') | Source/core/dom/Document.idl » ('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 3926 matching lines...) Expand 10 before | Expand all | Expand 10 after
3937 addListenerType(ANIMATIONEND_LISTENER); 3937 addListenerType(ANIMATIONEND_LISTENER);
3938 } else if (eventType == EventTypeNames::webkitAnimationIteration || (Runtime EnabledFeatures::cssAnimationUnprefixedEnabled() && eventType == EventTypeNames: :animationiteration)) { 3938 } else if (eventType == EventTypeNames::webkitAnimationIteration || (Runtime EnabledFeatures::cssAnimationUnprefixedEnabled() && eventType == EventTypeNames: :animationiteration)) {
3939 addListenerType(ANIMATIONITERATION_LISTENER); 3939 addListenerType(ANIMATIONITERATION_LISTENER);
3940 } else if (eventType == EventTypeNames::webkitTransitionEnd || eventType == EventTypeNames::transitionend) { 3940 } else if (eventType == EventTypeNames::webkitTransitionEnd || eventType == EventTypeNames::transitionend) {
3941 addListenerType(TRANSITIONEND_LISTENER); 3941 addListenerType(TRANSITIONEND_LISTENER);
3942 } else if (eventType == EventTypeNames::scroll) { 3942 } else if (eventType == EventTypeNames::scroll) {
3943 addListenerType(SCROLL_LISTENER); 3943 addListenerType(SCROLL_LISTENER);
3944 } 3944 }
3945 } 3945 }
3946 3946
3947 CSSStyleDeclaration* Document::getOverrideStyle(Element*, const String&)
3948 {
3949 return 0;
3950 }
3951
3952 HTMLFrameOwnerElement* Document::ownerElement() const 3947 HTMLFrameOwnerElement* Document::ownerElement() const
3953 { 3948 {
3954 if (!frame()) 3949 if (!frame())
3955 return 0; 3950 return 0;
3956 // FIXME: This probably breaks the attempts to layout after a load is finish ed in implicitClose(), and probably tons of other things... 3951 // FIXME: This probably breaks the attempts to layout after a load is finish ed in implicitClose(), and probably tons of other things...
3957 return frame()->deprecatedLocalOwner(); 3952 return frame()->deprecatedLocalOwner();
3958 } 3953 }
3959 3954
3960 bool Document::isInInvisibleSubframe() const 3955 bool Document::isInInvisibleSubframe() const
3961 { 3956 {
(...skipping 1866 matching lines...) Expand 10 before | Expand all | Expand 10 after
5828 #ifndef NDEBUG 5823 #ifndef NDEBUG
5829 using namespace blink; 5824 using namespace blink;
5830 void showLiveDocumentInstances() 5825 void showLiveDocumentInstances()
5831 { 5826 {
5832 WeakDocumentSet& set = liveDocumentSet(); 5827 WeakDocumentSet& set = liveDocumentSet();
5833 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); 5828 fprintf(stderr, "There are %u documents currently alive:\n", set.size());
5834 for (Document* document : set) 5829 for (Document* document : set)
5835 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str ing().utf8().data()); 5830 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str ing().utf8().data());
5836 } 5831 }
5837 #endif 5832 #endif
OLDNEW
« no previous file with comments | « Source/core/dom/Document.h ('k') | Source/core/dom/Document.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698