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

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

Issue 21081004: Add UseCounters for display:run-in and display:compact. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: include header 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
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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
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,
154 CaptureEvents, 154 CaptureEvents,
155 ReleaseEvents, 155 ReleaseEvents,
156 CSSDisplayRunIn,
157 CSSDisplayCompact,
156 // Add new features immediately above this line. Don't change assigned 158 // Add new features immediately above this line. Don't change assigned
157 // numbers of each items, and don't reuse unused slots. 159 // numbers of each items, and don't reuse unused slots.
158 NumberOfFeatures, // This enum value must be last. 160 NumberOfFeatures, // This enum value must be last.
159 }; 161 };
160 162
161 // "count" sets the bit for this feature to 1. Repeated calls are ignored. 163 // "count" sets the bit for this feature to 1. Repeated calls are ignored.
162 static void count(Document*, Feature); 164 static void count(Document*, Feature);
163 static void count(DOMWindow*, Feature); 165 static void count(DOMWindow*, Feature);
164 void count(CSSPropertyID); 166 void count(CSSPropertyID);
165 167
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 202
201 void updateMeasurements(); 203 void updateMeasurements();
202 204
203 OwnPtr<BitVector> m_countBits; 205 OwnPtr<BitVector> m_countBits;
204 BitVector m_CSSFeatureBits; 206 BitVector m_CSSFeatureBits;
205 }; 207 };
206 208
207 } // namespace WebCore 209 } // namespace WebCore
208 210
209 #endif // UseCounter_h 211 #endif // UseCounter_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/rendering/RenderObject.cpp » ('j') | Source/core/rendering/RenderObject.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698