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

Side by Side Diff: third_party/WebKit/Source/build/scripts/templates/CSSPropertyMetadata.cpp.tmpl

Issue 2614773007: Use switches for CSSPropertyMetadata::isDescriptorOnly. (Closed)
Patch Set: remove typo Created 3 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
« no previous file with comments | « third_party/WebKit/Source/build/scripts/make_css_property_metadata.py ('k') | 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 {% from 'macros.tmpl' import license %} 1 {% from 'macros.tmpl' import license %}
2 {{license()}} 2 {{license()}}
3 3
4 #include "core/css/CSSPropertyMetadata.h" 4 #include "core/css/CSSPropertyMetadata.h"
5 5
6 #include "platform/RuntimeEnabledFeatures.h" 6 #include "platform/RuntimeEnabledFeatures.h"
7 #include <bitset> 7 #include <bitset>
8 8
9 namespace blink { 9 namespace blink {
10 {% for flag, function_name in switches %} 10 {% for flag, function_name in switches %}
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 const CSSPropertyID* properties, 55 const CSSPropertyID* properties,
56 size_t propertyCount, 56 size_t propertyCount,
57 Vector<CSSPropertyID>& outVector) { 57 Vector<CSSPropertyID>& outVector) {
58 for (unsigned i = 0; i < propertyCount; i++) { 58 for (unsigned i = 0; i < propertyCount; i++) {
59 CSSPropertyID property = properties[i]; 59 CSSPropertyID property = properties[i];
60 if (isEnabledProperty(property)) 60 if (isEnabledProperty(property))
61 outVector.append(property); 61 outVector.append(property);
62 } 62 }
63 } 63 }
64 64
65 bool CSSPropertyMetadata::isDescriptorOnly(CSSPropertyID property) {
66 return property >= {{descriptors[0].property_id}} && property <= {{descripto rs[-1].property_id}};
67 }
68
69 } // namespace blink 65 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/build/scripts/make_css_property_metadata.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698