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

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

Issue 2873293002: Replace ASSERT with DCHECK_EQ as appropriate (Closed)
Patch Set: rebase Created 3 years, 7 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
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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 {% for property in properties_including_aliases if property.is_internal %} 58 {% for property in properties_including_aliases if property.is_internal %}
59 enabledProperties->reset({{property.property_id}} - {{first_enum_value}}); 59 enabledProperties->reset({{property.property_id}} - {{first_enum_value}});
60 {% endfor %} 60 {% endfor %}
61 } 61 }
62 62
63 if (unresolvedProperty >= {{first_enum_value}}) 63 if (unresolvedProperty >= {{first_enum_value}})
64 return enabledProperties->test(property - {{first_enum_value}}); 64 return enabledProperties->test(property - {{first_enum_value}});
65 65
66 if (unresolvedProperty == CSSPropertyVariable) 66 if (unresolvedProperty == CSSPropertyVariable)
67 return true; 67 return true;
68 ASSERT(unresolvedProperty == CSSPropertyApplyAtRule); 68 DCHECK_EQ(unresolvedProperty, CSSPropertyApplyAtRule);
69 return RuntimeEnabledFeatures::cssApplyAtRulesEnabled(); 69 return RuntimeEnabledFeatures::cssApplyAtRulesEnabled();
70 } 70 }
71 71
72 void CSSPropertyMetadata::FilterEnabledCSSPropertiesIntoVector( 72 void CSSPropertyMetadata::FilterEnabledCSSPropertiesIntoVector(
73 const CSSPropertyID* properties, 73 const CSSPropertyID* properties,
74 size_t propertyCount, 74 size_t propertyCount,
75 Vector<CSSPropertyID>& outVector) { 75 Vector<CSSPropertyID>& outVector) {
76 for (unsigned i = 0; i < propertyCount; i++) { 76 for (unsigned i = 0; i < propertyCount; i++) {
77 CSSPropertyID property = properties[i]; 77 CSSPropertyID property = properties[i];
78 if (IsEnabledProperty(property)) 78 if (IsEnabledProperty(property))
79 outVector.push_back(property); 79 outVector.push_back(property);
80 } 80 }
81 } 81 }
82 82
83 } // namespace blink 83 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698