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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 SVGFontElement, | 138 SVGFontElement, |
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 // Add new features immediately above this line. Don't change assigned n
umbers of each items. | 149 // Add new features immediately above this line. Don't change assigned n
umbers of each items. |
149 NumberOfFeatures, // This enum value must be last. | 150 NumberOfFeatures, // This enum value must be last. |
150 }; | 151 }; |
151 | 152 |
152 // "count" sets the bit for this feature to 1. Repeated calls are ignored. | 153 // "count" sets the bit for this feature to 1. Repeated calls are ignored. |
153 static void count(Document*, Feature); | 154 static void count(Document*, Feature); |
154 static void count(DOMWindow*, Feature); | 155 static void count(DOMWindow*, Feature); |
155 void count(CSSPropertyID); | 156 void count(CSSPropertyID); |
156 | 157 |
157 // "countDeprecation" sets the bit for this feature to 1, and sends a deprec
ation | 158 // "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 Loading... |
189 | 190 |
190 void updateMeasurements(); | 191 void updateMeasurements(); |
191 | 192 |
192 OwnPtr<BitVector> m_countBits; | 193 OwnPtr<BitVector> m_countBits; |
193 BitVector m_CSSFeatureBits; | 194 BitVector m_CSSFeatureBits; |
194 }; | 195 }; |
195 | 196 |
196 } // namespace WebCore | 197 } // namespace WebCore |
197 | 198 |
198 #endif // UseCounter_h | 199 #endif // UseCounter_h |
OLD | NEW |