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

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

Issue 132983005: Move from UnusedSlotXX to REMOVEDOldFeature in UseCounter.h (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 6 years, 11 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 | « no previous file | 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 LegacyNotifications, 63 LegacyNotifications,
64 MultipartMainResource, 64 MultipartMainResource,
65 PrefixedIndexedDB, 65 PrefixedIndexedDB,
66 WorkerStart, 66 WorkerStart,
67 SharedWorkerStart, 67 SharedWorkerStart,
68 LegacyWebAudio, 68 LegacyWebAudio,
69 WebAudioStart, 69 WebAudioStart,
70 PrefixedContentSecurityPolicy, 70 PrefixedContentSecurityPolicy,
71 UnprefixedIndexedDB, 71 UnprefixedIndexedDB,
72 OpenWebDatabase, 72 OpenWebDatabase,
73 UnusedSlot01, // Prior to 7/2013, we used this slot for LegacyHTMLNotifi cations. 73 REMOVEDLegacyHTMLNotifications,
74 LegacyTextNotifications, 74 LegacyTextNotifications,
75 UnprefixedRequestAnimationFrame, 75 UnprefixedRequestAnimationFrame,
76 PrefixedRequestAnimationFrame, 76 PrefixedRequestAnimationFrame,
77 ContentSecurityPolicy, 77 ContentSecurityPolicy,
78 ContentSecurityPolicyReportOnly, 78 ContentSecurityPolicyReportOnly,
79 PrefixedContentSecurityPolicyReportOnly, 79 PrefixedContentSecurityPolicyReportOnly,
80 PrefixedTransitionEndEvent, 80 PrefixedTransitionEndEvent,
81 UnprefixedTransitionEndEvent, 81 UnprefixedTransitionEndEvent,
82 PrefixedAndUnprefixedTransitionEndEvent, 82 PrefixedAndUnprefixedTransitionEndEvent,
83 AutoFocusAttribute, 83 AutoFocusAttribute,
84 UnusedSlot02, // Prior to 4/2013, we used this slot for AutoSaveAttribut e. 84 REMOVEDAutoSaveAttribute,
85 DataListElement, 85 DataListElement,
86 FormAttribute, 86 FormAttribute,
87 IncrementalAttribute, 87 IncrementalAttribute,
88 InputTypeColor, 88 InputTypeColor,
89 InputTypeDate, 89 InputTypeDate,
90 InputTypeDateTime, 90 InputTypeDateTime,
91 InputTypeDateTimeFallback, 91 InputTypeDateTimeFallback,
92 InputTypeDateTimeLocal, 92 InputTypeDateTimeLocal,
93 InputTypeEmail, 93 InputTypeEmail,
94 InputTypeMonth, 94 InputTypeMonth,
(...skipping 11 matching lines...) Expand all
106 PatternAttribute, 106 PatternAttribute,
107 PlaceholderAttribute, 107 PlaceholderAttribute,
108 PrecisionAttribute, 108 PrecisionAttribute,
109 PrefixedDirectoryAttribute, 109 PrefixedDirectoryAttribute,
110 PrefixedSpeechAttribute, 110 PrefixedSpeechAttribute,
111 RequiredAttribute, 111 RequiredAttribute,
112 ResultsAttribute, 112 ResultsAttribute,
113 StepAttribute, 113 StepAttribute,
114 PageVisits, 114 PageVisits,
115 HTMLMarqueeElement, 115 HTMLMarqueeElement,
116 UnusedSlot03, // Removed, was tracking overflow: -webkit-marquee. 116 REMOVEDCSSOverflowMarquee,
117 Reflection, 117 Reflection,
118 CursorVisibility, // Removed, was -webkit-cursor-visibility. 118 REMOVEDCursorVisibility,
119 StorageInfo, 119 StorageInfo,
120 XFrameOptions, 120 XFrameOptions,
121 XFrameOptionsSameOrigin, 121 XFrameOptionsSameOrigin,
122 XFrameOptionsSameOriginWithBadAncestorChain, 122 XFrameOptionsSameOriginWithBadAncestorChain,
123 DeprecatedFlexboxWebContent, 123 DeprecatedFlexboxWebContent,
124 DeprecatedFlexboxChrome, 124 DeprecatedFlexboxChrome,
125 DeprecatedFlexboxChromeExtension, 125 DeprecatedFlexboxChromeExtension,
126 UnusedSlot04, 126 REMOVEDSVGTRefElement,
127 UnprefixedPerformanceTimeline, 127 UnprefixedPerformanceTimeline,
128 PrefixedPerformanceTimeline, 128 PrefixedPerformanceTimeline,
129 UnprefixedUserTiming, 129 UnprefixedUserTiming,
130 PrefixedUserTiming, 130 PrefixedUserTiming,
131 WindowEvent, 131 WindowEvent,
132 ContentSecurityPolicyWithBaseElement, 132 ContentSecurityPolicyWithBaseElement,
133 PrefixedMediaAddKey, 133 PrefixedMediaAddKey,
134 PrefixedMediaGenerateKeyRequest, 134 PrefixedMediaGenerateKeyRequest,
135 UnusedSlot10, // Removed, was AudioBufferSourceNode.looping. 135 REMOVEDWebAudioLooping,
136 DocumentClear, 136 DocumentClear,
137 PrefixedTransitionMediaFeature, 137 PrefixedTransitionMediaFeature,
138 SVGFontElement, 138 SVGFontElement,
139 XMLDocument, 139 XMLDocument,
140 XSLProcessingInstruction, 140 XSLProcessingInstruction,
141 XSLTProcessor, 141 XSLTProcessor,
142 SVGSwitchElement, 142 SVGSwitchElement,
143 UnusedSlot05, // Removed, was document.webkitRegister 143 REMOVEDPrefixedDocumentRegister,
144 HTMLShadowElementOlderShadowRoot, 144 HTMLShadowElementOlderShadowRoot,
145 DocumentAll, 145 DocumentAll,
146 FormElement, 146 FormElement,
147 DemotedFormElement, 147 DemotedFormElement,
148 CaptureAttributeAsEnum, 148 CaptureAttributeAsEnum,
149 ShadowDOMPrefixedPseudo, 149 ShadowDOMPrefixedPseudo,
150 ShadowDOMPrefixedCreateShadowRoot, 150 ShadowDOMPrefixedCreateShadowRoot,
151 ShadowDOMPrefixedShadowRoot, 151 ShadowDOMPrefixedShadowRoot,
152 SVGAnimationElement, 152 SVGAnimationElement,
153 KeyboardEventKeyLocation, 153 KeyboardEventKeyLocation,
(...skipping 19 matching lines...) Expand all
173 DocumentCreateAttribute, // Removed from DOM4. 173 DocumentCreateAttribute, // Removed from DOM4.
174 DocumentCreateAttributeNS, // Removed from DOM4. 174 DocumentCreateAttributeNS, // Removed from DOM4.
175 DocumentCreateCDATASection, // Removed from DOM4. 175 DocumentCreateCDATASection, // Removed from DOM4.
176 DocumentInputEncoding, // Removed from DOM4. 176 DocumentInputEncoding, // Removed from DOM4.
177 DocumentXMLEncoding, // Removed from DOM4. 177 DocumentXMLEncoding, // Removed from DOM4.
178 DocumentXMLStandalone, // Removed from DOM4. 178 DocumentXMLStandalone, // Removed from DOM4.
179 DocumentXMLVersion, // Removed from DOM4. 179 DocumentXMLVersion, // Removed from DOM4.
180 NodeIsSameNode, // Removed from DOM4. 180 NodeIsSameNode, // Removed from DOM4.
181 NodeIsSupported, // Removed from DOM4. 181 NodeIsSupported, // Removed from DOM4.
182 NodeNamespaceURI, // Removed from DOM4. 182 NodeNamespaceURI, // Removed from DOM4.
183 UnusedSlot06, // Removed, was Node.prefix. 183 REMOVEDNodePrefix,
184 NodeLocalName, // Removed from DOM4. 184 NodeLocalName, // Removed from DOM4.
185 NavigatorProductSub, 185 NavigatorProductSub,
186 NavigatorVendor, 186 NavigatorVendor,
187 NavigatorVendorSub, 187 NavigatorVendorSub,
188 FileError, 188 FileError,
189 DocumentCharset, // Documented as IE extensions, from KHTML days. 189 DocumentCharset, // Documented as IE extensions, from KHTML days.
190 PrefixedAnimationEndEvent, 190 PrefixedAnimationEndEvent,
191 UnprefixedAnimationEndEvent, 191 UnprefixedAnimationEndEvent,
192 PrefixedAndUnprefixedAnimationEndEvent, 192 PrefixedAndUnprefixedAnimationEndEvent,
193 PrefixedAnimationStartEvent, 193 PrefixedAnimationStartEvent,
(...skipping 16 matching lines...) Expand all
210 DocumentAllTags, 210 DocumentAllTags,
211 DocumentAllLegacyCall, 211 DocumentAllLegacyCall,
212 HTMLAppletElementLegacyCall, 212 HTMLAppletElementLegacyCall,
213 HTMLEmbedElementLegacyCall, 213 HTMLEmbedElementLegacyCall,
214 HTMLObjectElementLegacyCall, 214 HTMLObjectElementLegacyCall,
215 BeforeLoadEvent, 215 BeforeLoadEvent,
216 GetMatchedCSSRules, 216 GetMatchedCSSRules,
217 SVGFontInCSS, 217 SVGFontInCSS,
218 ScrollTopBodyNotQuirksMode, 218 ScrollTopBodyNotQuirksMode,
219 ScrollLeftBodyNotQuirksMode, 219 ScrollLeftBodyNotQuirksMode,
220 UnusedSlot07, // Removed, was Attr.isId. 220 REMOVEDAttributeIsId,
221 UnusedSlot08, // Removed, was Attr.ownerElement. 221 REMOVEDAttributeOwnerElement,
222 UnusedSlot09, // Removed, was Attr.prefix setter. 222 REMOVEDAttributeSetPrefix,
223 AttributeSpecified, // Removed in DOM4. 223 AttributeSpecified, // Removed in DOM4.
224 BeforeLoadEventInIsolatedWorld, 224 BeforeLoadEventInIsolatedWorld,
225 PrefixedAudioDecodedByteCount, 225 PrefixedAudioDecodedByteCount,
226 PrefixedVideoDecodedByteCount, 226 PrefixedVideoDecodedByteCount,
227 PrefixedVideoSupportsFullscreen, 227 PrefixedVideoSupportsFullscreen,
228 PrefixedVideoDisplayingFullscreen, 228 PrefixedVideoDisplayingFullscreen,
229 PrefixedVideoEnterFullscreen, 229 PrefixedVideoEnterFullscreen,
230 PrefixedVideoExitFullscreen, 230 PrefixedVideoExitFullscreen,
231 PrefixedVideoEnterFullScreen, 231 PrefixedVideoEnterFullScreen,
232 PrefixedVideoExitFullScreen, 232 PrefixedVideoExitFullScreen,
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 CSSStyleSheetAddRule, 281 CSSStyleSheetAddRule,
282 CSSStyleSheetRemoveRule, 282 CSSStyleSheetRemoveRule,
283 InitMessageEvent, 283 InitMessageEvent,
284 PrefixedInitMessageEvent, 284 PrefixedInitMessageEvent,
285 ElementSetPrefix, // Element.prefix is readonly in DOM4. 285 ElementSetPrefix, // Element.prefix is readonly in DOM4.
286 CSSStyleDeclarationGetPropertyCSSValue, 286 CSSStyleDeclarationGetPropertyCSSValue,
287 SVGElementGetPresentationAttribute, 287 SVGElementGetPresentationAttribute,
288 AttrUsedAsNodeParameter, 288 AttrUsedAsNodeParameter,
289 AttrUsedAsNodeReceiver, 289 AttrUsedAsNodeReceiver,
290 // Add new features immediately above this line. Don't change assigned 290 // Add new features immediately above this line. Don't change assigned
291 // numbers of each items, and don't reuse unused slots. 291 // numbers of any item, and don't reuse removed slots.
292 NumberOfFeatures, // This enum value must be last. 292 NumberOfFeatures, // This enum value must be last.
293 }; 293 };
294 294
295 // "count" sets the bit for this feature to 1. Repeated calls are ignored. 295 // "count" sets the bit for this feature to 1. Repeated calls are ignored.
296 static void count(const Document&, Feature); 296 static void count(const Document&, Feature);
297 static void count(const ExecutionContext*, Feature); 297 static void count(const ExecutionContext*, Feature);
298 void count(CSSParserContext, CSSPropertyID); 298 void count(CSSParserContext, CSSPropertyID);
299 void count(Feature); 299 void count(Feature);
300 300
301 // "countDeprecation" sets the bit for this feature to 1, and sends a deprec ation 301 // "countDeprecation" sets the bit for this feature to 1, and sends a deprec ation
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 335
336 void updateMeasurements(); 336 void updateMeasurements();
337 337
338 OwnPtr<BitVector> m_countBits; 338 OwnPtr<BitVector> m_countBits;
339 BitVector m_CSSFeatureBits; 339 BitVector m_CSSFeatureBits;
340 }; 340 };
341 341
342 } // namespace WebCore 342 } // namespace WebCore
343 343
344 #endif // UseCounter_h 344 #endif // UseCounter_h
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698