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

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

Issue 22876008: Measure usage for DocumentType attributes removed from DOM4 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add comments Created 7 years, 4 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 | « Source/core/dom/DocumentType.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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 CSSDisplayRunIn, 156 CSSDisplayRunIn,
157 CSSDisplayCompact, 157 CSSDisplayCompact,
158 LineClamp, 158 LineClamp,
159 SubFrameBeforeUnloadRegistered, 159 SubFrameBeforeUnloadRegistered,
160 SubFrameBeforeUnloadFired, 160 SubFrameBeforeUnloadFired,
161 CSSPseudoElementPrefixedDistributed, 161 CSSPseudoElementPrefixedDistributed,
162 TextReplaceWholeText, 162 TextReplaceWholeText,
163 PrefixedShadowRootConstructor, 163 PrefixedShadowRootConstructor,
164 ConsoleMarkTimeline, 164 ConsoleMarkTimeline,
165 CSSPseudoElementUserAgentCustomPseudo, 165 CSSPseudoElementUserAgentCustomPseudo,
166 DocumentTypeEntities, // Removed from DOM4.
167 DocumentTypeInternalSubset, // Removed from DOM4.
168 DocumentTypeNotations, // Removed from DOM4.
166 // Add new features immediately above this line. Don't change assigned 169 // Add new features immediately above this line. Don't change assigned
167 // numbers of each items, and don't reuse unused slots. 170 // numbers of each items, and don't reuse unused slots.
168 NumberOfFeatures, // This enum value must be last. 171 NumberOfFeatures, // This enum value must be last.
169 }; 172 };
170 173
171 // "count" sets the bit for this feature to 1. Repeated calls are ignored. 174 // "count" sets the bit for this feature to 1. Repeated calls are ignored.
172 static void count(Document*, Feature); 175 static void count(Document*, Feature);
173 static void count(DOMWindow*, Feature); 176 static void count(DOMWindow*, Feature);
174 void count(CSSPropertyID); 177 void count(CSSPropertyID);
175 void count(Feature); 178 void count(Feature);
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 214
212 void updateMeasurements(); 215 void updateMeasurements();
213 216
214 OwnPtr<BitVector> m_countBits; 217 OwnPtr<BitVector> m_countBits;
215 BitVector m_CSSFeatureBits; 218 BitVector m_CSSFeatureBits;
216 }; 219 };
217 220
218 } // namespace WebCore 221 } // namespace WebCore
219 222
220 #endif // UseCounter_h 223 #endif // UseCounter_h
OLDNEW
« no previous file with comments | « Source/core/dom/DocumentType.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698