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

Side by Side Diff: Source/core/frame/UseCounter.cpp

Issue 799403007: Add counters for all of the WebAudio nodes and important methods. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase take 2 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/frame/UseCounter.h ('k') | Source/modules/webaudio/AudioContext.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 /* 2 /*
3 * Copyright (C) 2012 Google, Inc. All rights reserved. 3 * Copyright (C) 2012 Google, Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 815 matching lines...) Expand 10 before | Expand all | Expand 10 after
826 826
827 case ShadowRootGetElementsByTagName: 827 case ShadowRootGetElementsByTagName:
828 return "ShadowRoot.getElementsByTagName() is deprecated. Please use 'que rySelectorAll' instead"; 828 return "ShadowRoot.getElementsByTagName() is deprecated. Please use 'que rySelectorAll' instead";
829 829
830 case ShadowRootGetElementsByTagNameNS: 830 case ShadowRootGetElementsByTagNameNS:
831 return "ShadowRoot.getElementsByTagNameNS() is deprecated. Please use 'q uerySelectorAll' instead"; 831 return "ShadowRoot.getElementsByTagNameNS() is deprecated. Please use 'q uerySelectorAll' instead";
832 832
833 case PrefixedWindowURL: 833 case PrefixedWindowURL:
834 return replacedBy("webkitURL", "URL"); 834 return replacedBy("webkitURL", "URL");
835 835
836 case PrefixedAudioContext:
837 return replacedBy("webkitAudioContext", "AudioContext");
838
839 case PrefixedOfflineAudioContext:
840 return replacedBy("webkitOfflineAudioContext", "OfflineAudioContext");
841
836 // Features that aren't deprecated don't have a deprecation message. 842 // Features that aren't deprecated don't have a deprecation message.
837 default: 843 default:
838 return String(); 844 return String();
839 } 845 }
840 } 846 }
841 847
842 void UseCounter::count(CSSParserContext context, CSSPropertyID feature) 848 void UseCounter::count(CSSParserContext context, CSSPropertyID feature)
843 { 849 {
844 ASSERT(feature >= firstCSSProperty); 850 ASSERT(feature >= firstCSSProperty);
845 ASSERT(feature <= lastCSSProperty); 851 ASSERT(feature <= lastCSSProperty);
(...skipping 28 matching lines...) Expand all
874 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) 880 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents)
875 { 881 {
876 // FIXME: We may want to handle stylesheets that have multiple owners 882 // FIXME: We may want to handle stylesheets that have multiple owners
877 // http://crbug.com/242125 883 // http://crbug.com/242125
878 if (sheetContents && sheetContents->hasSingleOwnerNode()) 884 if (sheetContents && sheetContents->hasSingleOwnerNode())
879 return getFrom(sheetContents->singleOwnerDocument()); 885 return getFrom(sheetContents->singleOwnerDocument());
880 return 0; 886 return 0;
881 } 887 }
882 888
883 } // namespace blink 889 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/frame/UseCounter.h ('k') | Source/modules/webaudio/AudioContext.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698