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

Unified Diff: third_party/WebKit/Source/core/css/StyleSheetContents.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/StyleSheetContents.cpp
diff --git a/third_party/WebKit/Source/core/css/StyleSheetContents.cpp b/third_party/WebKit/Source/core/css/StyleSheetContents.cpp
index 7dc7792ec83c2499842949c2d322ef499777b200..42715a55af0743e6e8f6281a3e60a9a2145be282 100644
--- a/third_party/WebKit/Source/core/css/StyleSheetContents.cpp
+++ b/third_party/WebKit/Source/core/css/StyleSheetContents.cpp
@@ -162,7 +162,7 @@ void StyleSheetContents::parserAppendRule(StyleRuleBase* rule) {
StyleRuleImport* importRule = toStyleRuleImport(rule);
if (importRule->mediaQueries())
setHasMediaQueries();
- m_importRules.append(importRule);
+ m_importRules.push_back(importRule);
m_importRules.back()->setParentStyleSheet(this);
m_importRules.back()->requestStyleSheet();
return;
@@ -174,11 +174,11 @@ void StyleSheetContents::parserAppendRule(StyleRuleBase* rule) {
ASSERT(m_childRules.isEmpty());
StyleRuleNamespace& namespaceRule = toStyleRuleNamespace(*rule);
parserAddNamespace(namespaceRule.prefix(), namespaceRule.uri());
- m_namespaceRules.append(&namespaceRule);
+ m_namespaceRules.push_back(&namespaceRule);
return;
}
- m_childRules.append(rule);
+ m_childRules.push_back(rule);
}
void StyleSheetContents::setHasMediaQueries() {
@@ -663,7 +663,7 @@ static void findFontFaceRulesFromRules(
StyleRuleBase* rule = rules[i].get();
if (rule->isFontFaceRule()) {
- fontFaceRules.append(toStyleRuleFontFace(rule));
+ fontFaceRules.push_back(toStyleRuleFontFace(rule));
} else if (rule->isMediaRule()) {
StyleRuleMedia* mediaRule = toStyleRuleMedia(rule);
// We cannot know whether the media rule matches or not, but

Powered by Google App Engine
This is Rietveld 408576698