OLD | NEW |
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 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
352 CanvasRenderingContext2DSetLineCap = 333, | 352 CanvasRenderingContext2DSetLineCap = 333, |
353 CanvasRenderingContext2DSetLineJoin = 334, | 353 CanvasRenderingContext2DSetLineJoin = 334, |
354 CanvasRenderingContext2DSetMiterLimit = 335, | 354 CanvasRenderingContext2DSetMiterLimit = 335, |
355 CanvasRenderingContext2DClearShadow = 336, | 355 CanvasRenderingContext2DClearShadow = 336, |
356 CanvasRenderingContext2DSetStrokeColor = 337, | 356 CanvasRenderingContext2DSetStrokeColor = 337, |
357 CanvasRenderingContext2DSetFillColor = 338, | 357 CanvasRenderingContext2DSetFillColor = 338, |
358 CanvasRenderingContext2DDrawImageFromRect = 339, | 358 CanvasRenderingContext2DDrawImageFromRect = 339, |
359 CanvasRenderingContext2DSetShadow = 340, | 359 CanvasRenderingContext2DSetShadow = 340, |
360 PrefixedPerformanceClearResourceTimings = 341, | 360 PrefixedPerformanceClearResourceTimings = 341, |
361 PrefixedPerformanceSetResourceTimingBufferSize = 342, | 361 PrefixedPerformanceSetResourceTimingBufferSize = 342, |
| 362 NodeIteratorDetach = 343, |
362 // Add new features immediately above this line. Don't change assigned | 363 // Add new features immediately above this line. Don't change assigned |
363 // numbers of any item, and don't reuse removed slots. | 364 // numbers of any item, and don't reuse removed slots. |
364 NumberOfFeatures, // This enum value must be last. | 365 NumberOfFeatures, // This enum value must be last. |
365 }; | 366 }; |
366 | 367 |
367 // "count" sets the bit for this feature to 1. Repeated calls are ignored. | 368 // "count" sets the bit for this feature to 1. Repeated calls are ignored. |
368 static void count(const Document&, Feature); | 369 static void count(const Document&, Feature); |
369 static void count(const ExecutionContext*, Feature); | 370 static void count(const ExecutionContext*, Feature); |
370 void count(CSSParserContext, CSSPropertyID); | 371 void count(CSSParserContext, CSSPropertyID); |
371 void count(Feature); | 372 void count(Feature); |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
414 | 415 |
415 void updateMeasurements(); | 416 void updateMeasurements(); |
416 | 417 |
417 OwnPtr<BitVector> m_countBits; | 418 OwnPtr<BitVector> m_countBits; |
418 BitVector m_CSSFeatureBits; | 419 BitVector m_CSSFeatureBits; |
419 }; | 420 }; |
420 | 421 |
421 } // namespace WebCore | 422 } // namespace WebCore |
422 | 423 |
423 #endif // UseCounter_h | 424 #endif // UseCounter_h |
OLD | NEW |