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

Side by Side Diff: third_party/WebKit/Source/core/frame/UseCounter.h

Issue 1648593002: Revert of Add deprecation message for -webkit-background-composite (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google, Inc. All rights reserved. 2 * Copyright (C) 2012 Google, Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 1031 matching lines...) Expand 10 before | Expand all | Expand 10 after
1042 // Use countDeprecationIfNotPrivateScript() instead of countDeprecation() 1042 // Use countDeprecationIfNotPrivateScript() instead of countDeprecation()
1043 // if you don't want to count metrics in private scripts. You should use 1043 // if you don't want to count metrics in private scripts. You should use
1044 // countDeprecationIfNotPrivateScript() in a binding layer. 1044 // countDeprecationIfNotPrivateScript() in a binding layer.
1045 static void countDeprecationIfNotPrivateScript(v8::Isolate*, ExecutionContex t*, Feature); 1045 static void countDeprecationIfNotPrivateScript(v8::Isolate*, ExecutionContex t*, Feature);
1046 static String deprecationMessage(Feature); 1046 static String deprecationMessage(Feature);
1047 1047
1048 // Count only features if they're being used in an iframe which does not 1048 // Count only features if they're being used in an iframe which does not
1049 // have script access into the top level document. 1049 // have script access into the top level document.
1050 static void countCrossOriginIframe(const Document&, Feature); 1050 static void countCrossOriginIframe(const Document&, Feature);
1051 1051
1052 // TODO (nainar): Migrate all console message functions to Deprecation
1053 static String willBeRemoved(const char* feature, int milestone, const char* details);
1054
1055 // Return whether the Feature was previously counted for this document. 1052 // Return whether the Feature was previously counted for this document.
1056 // NOTE: only for use in testing. 1053 // NOTE: only for use in testing.
1057 static bool isCounted(Document&, Feature); 1054 static bool isCounted(Document&, Feature);
1058 1055
1059 void didCommitLoad(); 1056 void didCommitLoad();
1060 1057
1061 static UseCounter* getFrom(const Document*); 1058 static UseCounter* getFrom(const Document*);
1062 static UseCounter* getFrom(const CSSStyleSheet*); 1059 static UseCounter* getFrom(const CSSStyleSheet*);
1063 static UseCounter* getFrom(const StyleSheetContents*); 1060 static UseCounter* getFrom(const StyleSheetContents*);
1064 1061
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
1107 1104
1108 bool hasRecordedMeasurement(Feature feature) const { return m_countBits.hasR ecordedMeasurement(feature); } 1105 bool hasRecordedMeasurement(Feature feature) const { return m_countBits.hasR ecordedMeasurement(feature); }
1109 1106
1110 CountBits m_countBits; 1107 CountBits m_countBits;
1111 BitVector m_CSSFeatureBits; 1108 BitVector m_CSSFeatureBits;
1112 }; 1109 };
1113 1110
1114 } // namespace blink 1111 } // namespace blink
1115 1112
1116 #endif // UseCounter_h 1113 #endif // UseCounter_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameHost.cpp ('k') | third_party/WebKit/Source/core/frame/UseCounter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698