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

Unified Diff: third_party/WebKit/Source/core/css/parser/CSSPropertyParser.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/parser/CSSPropertyParser.cpp
diff --git a/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp b/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp
index ecd70087d009a4f128ec9dfd1037773b34c08be8..754f49990314981398cc1cf78e4a8f27426604a5 100644
--- a/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp
+++ b/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp
@@ -79,7 +79,7 @@ void CSSPropertyParser::addProperty(CSSPropertyID property,
indexOfShorthandForLonghand(currentShorthand, shorthands);
}
- m_parsedProperties->append(CSSProperty(
+ m_parsedProperties->push_back(CSSProperty(
property, value, important, setFromShorthand, shorthandIndex, implicit));
}
@@ -2022,7 +2022,7 @@ static CSSValue* consumePaintOrder(CSSParserTokenRange& range) {
markers = consumeIdent(range);
else
return nullptr;
- paintTypeList.append(id);
+ paintTypeList.push_back(id);
} while (!range.atEnd());
// After parsing we serialize the paint-order list. Since it is not possible
@@ -3114,7 +3114,7 @@ static Vector<String> parseGridTemplateAreasColumnNames(
for (unsigned i = 0; i < text.length(); ++i) {
if (isCSSSpace(text[i])) {
if (!areaName.isEmpty()) {
- columnNames.append(areaName.toString());
+ columnNames.push_back(areaName.toString());
areaName.clear();
}
continue;
@@ -3123,14 +3123,14 @@ static Vector<String> parseGridTemplateAreasColumnNames(
if (areaName == ".")
continue;
if (!areaName.isEmpty()) {
- columnNames.append(areaName.toString());
+ columnNames.push_back(areaName.toString());
areaName.clear();
}
} else {
if (!isNameCodePoint(text[i]))
return Vector<String>();
if (areaName == ".") {
- columnNames.append(areaName.toString());
+ columnNames.push_back(areaName.toString());
areaName.clear();
}
}
@@ -3139,7 +3139,7 @@ static Vector<String> parseGridTemplateAreasColumnNames(
}
if (!areaName.isEmpty())
- columnNames.append(areaName.toString());
+ columnNames.push_back(areaName.toString());
return columnNames;
}

Powered by Google App Engine
This is Rietveld 408576698