| 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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 XSLTProcessor = 79, | 131 XSLTProcessor = 79, |
| 132 SVGSwitchElement = 80, | 132 SVGSwitchElement = 80, |
| 133 DocumentAll = 83, | 133 DocumentAll = 83, |
| 134 FormElement = 84, | 134 FormElement = 84, |
| 135 DemotedFormElement = 85, | 135 DemotedFormElement = 85, |
| 136 CaptureAttributeAsEnum = 86, | 136 CaptureAttributeAsEnum = 86, |
| 137 ShadowDOMPrefixedCreateShadowRoot = 88, | 137 ShadowDOMPrefixedCreateShadowRoot = 88, |
| 138 ShadowDOMPrefixedShadowRoot = 89, | 138 ShadowDOMPrefixedShadowRoot = 89, |
| 139 SVGAnimationElement = 90, | 139 SVGAnimationElement = 90, |
| 140 KeyboardEventKeyLocation = 91, | 140 KeyboardEventKeyLocation = 91, |
| 141 CaptureEvents = 92, | |
| 142 ReleaseEvents = 93, | |
| 143 LineClamp = 96, | 141 LineClamp = 96, |
| 144 SubFrameBeforeUnloadRegistered = 97, | 142 SubFrameBeforeUnloadRegistered = 97, |
| 145 SubFrameBeforeUnloadFired = 98, | 143 SubFrameBeforeUnloadFired = 98, |
| 146 CSSPseudoElementPrefixedDistributed = 99, | 144 CSSPseudoElementPrefixedDistributed = 99, |
| 147 TextReplaceWholeText = 100, | 145 TextReplaceWholeText = 100, |
| 148 PrefixedShadowRootConstructor = 101, | 146 PrefixedShadowRootConstructor = 101, |
| 149 ConsoleMarkTimeline = 102, | 147 ConsoleMarkTimeline = 102, |
| 150 CSSPseudoElementUserAgentCustomPseudo = 103, | 148 CSSPseudoElementUserAgentCustomPseudo = 103, |
| 151 DocumentTypeInternalSubset = 105, // Removed from DOM4. | 149 DocumentTypeInternalSubset = 105, // Removed from DOM4. |
| 152 ElementGetAttributeNode = 107, // Removed from DOM4. | 150 ElementGetAttributeNode = 107, // Removed from DOM4. |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 298 JavascriptExhaustedMemory = 277, | 296 JavascriptExhaustedMemory = 277, |
| 299 InsertAdjacentHTML = 278, | 297 InsertAdjacentHTML = 278, |
| 300 SVGClassName = 279, | 298 SVGClassName = 279, |
| 301 HTMLAppletElement = 280, | 299 HTMLAppletElement = 280, |
| 302 HTMLMediaElementSeekToFragmentStart = 281, | 300 HTMLMediaElementSeekToFragmentStart = 281, |
| 303 HTMLMediaElementPauseAtFragmentEnd = 282, | 301 HTMLMediaElementPauseAtFragmentEnd = 282, |
| 304 PrefixedWindowURL = 283, | 302 PrefixedWindowURL = 283, |
| 305 PrefixedWorkerURL = 284, | 303 PrefixedWorkerURL = 284, |
| 306 WindowOrientation = 285, | 304 WindowOrientation = 285, |
| 307 DOMStringListContains = 286, | 305 DOMStringListContains = 286, |
| 306 DocumentCaptureEvents = 287, |
| 307 DocumentReleaseEvents = 288, |
| 308 WindowCaptureEvents = 289, |
| 309 WindowReleaseEvents = 290, |
| 308 // Add new features immediately above this line. Don't change assigned | 310 // Add new features immediately above this line. Don't change assigned |
| 309 // numbers of any item, and don't reuse removed slots. | 311 // numbers of any item, and don't reuse removed slots. |
| 310 NumberOfFeatures, // This enum value must be last. | 312 NumberOfFeatures, // This enum value must be last. |
| 311 }; | 313 }; |
| 312 | 314 |
| 313 // "count" sets the bit for this feature to 1. Repeated calls are ignored. | 315 // "count" sets the bit for this feature to 1. Repeated calls are ignored. |
| 314 static void count(const Document&, Feature); | 316 static void count(const Document&, Feature); |
| 315 static void count(const ExecutionContext*, Feature); | 317 static void count(const ExecutionContext*, Feature); |
| 316 void count(CSSParserContext, CSSPropertyID); | 318 void count(CSSParserContext, CSSPropertyID); |
| 317 void count(Feature); | 319 void count(Feature); |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 353 | 355 |
| 354 void updateMeasurements(); | 356 void updateMeasurements(); |
| 355 | 357 |
| 356 OwnPtr<BitVector> m_countBits; | 358 OwnPtr<BitVector> m_countBits; |
| 357 BitVector m_CSSFeatureBits; | 359 BitVector m_CSSFeatureBits; |
| 358 }; | 360 }; |
| 359 | 361 |
| 360 } // namespace WebCore | 362 } // namespace WebCore |
| 361 | 363 |
| 362 #endif // UseCounter_h | 364 #endif // UseCounter_h |
| OLD | NEW |