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

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

Issue 22182002: Measure usage for Text.prototype.replaceWholeText() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Use MeasureAs instead of deprecating 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/Text.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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 SVGAnimationElement, 152 SVGAnimationElement,
153 KeyboardEventKeyLocation, 153 KeyboardEventKeyLocation,
154 CaptureEvents, 154 CaptureEvents,
155 ReleaseEvents, 155 ReleaseEvents,
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 // Add new features immediately above this line. Don't change assigned 163 // Add new features immediately above this line. Don't change assigned
163 // numbers of each items, and don't reuse unused slots. 164 // numbers of each items, and don't reuse unused slots.
164 NumberOfFeatures, // This enum value must be last. 165 NumberOfFeatures, // This enum value must be last.
165 }; 166 };
166 167
167 // "count" sets the bit for this feature to 1. Repeated calls are ignored. 168 // "count" sets the bit for this feature to 1. Repeated calls are ignored.
168 static void count(Document*, Feature); 169 static void count(Document*, Feature);
169 static void count(DOMWindow*, Feature); 170 static void count(DOMWindow*, Feature);
170 void count(CSSPropertyID); 171 void count(CSSPropertyID);
171 void count(Feature); 172 void count(Feature);
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 208
208 void updateMeasurements(); 209 void updateMeasurements();
209 210
210 OwnPtr<BitVector> m_countBits; 211 OwnPtr<BitVector> m_countBits;
211 BitVector m_CSSFeatureBits; 212 BitVector m_CSSFeatureBits;
212 }; 213 };
213 214
214 } // namespace WebCore 215 } // namespace WebCore
215 216
216 #endif // UseCounter_h 217 #endif // UseCounter_h
OLDNEW
« no previous file with comments | « Source/core/dom/Text.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698