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

Unified Diff: third_party/WebKit/Source/core/css/StylePropertySet.cpp

Issue 2566403003: Migrate WTF::Vector::append() to ::push_back() [part 3 of N] (Closed)
Patch Set: Created 4 years 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/css/StylePropertySet.cpp
diff --git a/third_party/WebKit/Source/core/css/StylePropertySet.cpp b/third_party/WebKit/Source/core/css/StylePropertySet.cpp
index 0bc52a5ee212095888a8e04abed441ebc6188b1a..c2432b719c4cac96bb78151f4b63fce667f5312d 100644
--- a/third_party/WebKit/Source/core/css/StylePropertySet.cpp
+++ b/third_party/WebKit/Source/core/css/StylePropertySet.cpp
@@ -347,7 +347,7 @@ void MutableStylePropertySet::setProperty(CSSPropertyID propertyID,
removePropertiesInSet(shorthand.properties(), shorthand.length());
for (unsigned i = 0; i < shorthand.length(); ++i)
- m_propertyVector.append(
+ m_propertyVector.push_back(
CSSProperty(shorthand.properties()[i], value, important));
}
@@ -365,7 +365,7 @@ bool MutableStylePropertySet::setProperty(const CSSProperty& property,
*toReplace = property;
return true;
}
- m_propertyVector.append(property);
+ m_propertyVector.push_back(property);
return true;
}
@@ -423,7 +423,7 @@ void MutableStylePropertySet::mergeAndOverrideOnConflict(
if (old)
setProperty(toMerge.toCSSProperty(), old);
else
- m_propertyVector.append(toMerge.toCSSProperty());
+ m_propertyVector.push_back(toMerge.toCSSProperty());
}
}
@@ -505,7 +505,7 @@ void MutableStylePropertySet::removeEquivalentProperties(
for (unsigned i = 0; i < size; ++i) {
PropertyReference property = propertyAt(i);
if (style->propertyMatches(property.id(), property.value()))
- propertiesToRemove.append(property.id());
+ propertiesToRemove.push_back(property.id());
}
// FIXME: This should use mass removal.
for (unsigned i = 0; i < propertiesToRemove.size(); ++i)
@@ -519,7 +519,7 @@ void MutableStylePropertySet::removeEquivalentProperties(
for (unsigned i = 0; i < size; ++i) {
PropertyReference property = propertyAt(i);
if (style->cssPropertyMatches(property.id(), &property.value()))
- propertiesToRemove.append(property.id());
+ propertiesToRemove.push_back(property.id());
}
// FIXME: This should use mass removal.
for (unsigned i = 0; i < propertiesToRemove.size(); ++i)
@@ -537,7 +537,7 @@ MutableStylePropertySet* StylePropertySet::copyPropertiesInSet(
for (unsigned i = 0; i < properties.size(); ++i) {
const CSSValue* value = getPropertyCSSValue(properties[i]);
if (value)
- list.append(CSSProperty(properties[i], *value, false));
+ list.push_back(CSSProperty(properties[i], *value, false));
}
return MutableStylePropertySet::create(list.data(), list.size());
}
« no previous file with comments | « third_party/WebKit/Source/core/css/SelectorFilter.cpp ('k') | third_party/WebKit/Source/core/css/StyleSheetContents.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698