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

Side by Side Diff: Source/core/page/UseCounter.h

Issue 20249002: Measure the usage of prefixed Shadow DOM APIs. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 5 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
« no previous file with comments | « Source/core/dom/Element.idl ('k') | no next file » | 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) 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 XMLDocument, 139 XMLDocument,
140 XSLProcessingInstruction, 140 XSLProcessingInstruction,
141 XSLTProcessor, 141 XSLTProcessor,
142 SVGSwitchElement, 142 SVGSwitchElement,
143 PrefixedDocumentRegister, 143 PrefixedDocumentRegister,
144 HTMLShadowElementOlderShadowRoot, 144 HTMLShadowElementOlderShadowRoot,
145 DocumentAll, 145 DocumentAll,
146 FormElement, 146 FormElement,
147 DemotedFormElement, 147 DemotedFormElement,
148 CaptureAttributeAsEnum, 148 CaptureAttributeAsEnum,
149 ShadowDOMPrefixedPseudo,
150 ShadowDOMPrefixedCreateShadowRoot,
151 ShadowDOMPrefixedShadowRoot,
149 // Add new features immediately above this line. Don't change assigned n umbers of each items. 152 // Add new features immediately above this line. Don't change assigned n umbers of each items.
150 NumberOfFeatures, // This enum value must be last. 153 NumberOfFeatures, // This enum value must be last.
151 }; 154 };
152 155
153 // "count" sets the bit for this feature to 1. Repeated calls are ignored. 156 // "count" sets the bit for this feature to 1. Repeated calls are ignored.
154 static void count(Document*, Feature); 157 static void count(Document*, Feature);
155 static void count(DOMWindow*, Feature); 158 static void count(DOMWindow*, Feature);
156 void count(CSSPropertyID); 159 void count(CSSPropertyID);
157 160
158 // "countDeprecation" sets the bit for this feature to 1, and sends a deprec ation 161 // "countDeprecation" sets the bit for this feature to 1, and sends a deprec ation
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 193
191 void updateMeasurements(); 194 void updateMeasurements();
192 195
193 OwnPtr<BitVector> m_countBits; 196 OwnPtr<BitVector> m_countBits;
194 BitVector m_CSSFeatureBits; 197 BitVector m_CSSFeatureBits;
195 }; 198 };
196 199
197 } // namespace WebCore 200 } // namespace WebCore
198 201
199 #endif // UseCounter_h 202 #endif // UseCounter_h
OLDNEW
« no previous file with comments | « Source/core/dom/Element.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698