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

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

Issue 2610893005: Migrate WTF::Vector::append() to ::push_back() [part 16 of N] (Closed)
Patch Set: rebase 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
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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 return RuntimeEnabledFeatures::cssApplyAtRulesEnabled(); 51 return RuntimeEnabledFeatures::cssApplyAtRulesEnabled();
52 } 52 }
53 53
54 void CSSPropertyMetadata::filterEnabledCSSPropertiesIntoVector( 54 void CSSPropertyMetadata::filterEnabledCSSPropertiesIntoVector(
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.push_back(property);
62 } 62 }
63 } 63 }
64 64
65 } // namespace blink 65 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698