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

Unified Diff: third_party/WebKit/Source/core/css/ElementRuleCollector.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/ElementRuleCollector.cpp
diff --git a/third_party/WebKit/Source/core/css/ElementRuleCollector.cpp b/third_party/WebKit/Source/core/css/ElementRuleCollector.cpp
index 06f3478cf42654e58582ca3f50c29d847ceb5a4f..22d131e793eea0a646aad7491845a5c236cdc2c9 100644
--- a/third_party/WebKit/Source/core/css/ElementRuleCollector.cpp
+++ b/third_party/WebKit/Source/core/css/ElementRuleCollector.cpp
@@ -286,7 +286,7 @@ void ElementRuleCollector::appendCSSOMWrapperForRule(
else
cssRule = rule->createCSSOMWrapper();
ASSERT(!parentStyleSheet || cssRule);
- ensureRuleList()->rules().append(cssRule);
+ ensureRuleList()->rules().push_back(cssRule);
}
void ElementRuleCollector::sortAndTransferMatchedRules() {
@@ -297,7 +297,7 @@ void ElementRuleCollector::sortAndTransferMatchedRules() {
if (m_mode == SelectorChecker::CollectingStyleRules) {
for (unsigned i = 0; i < m_matchedRules.size(); ++i)
- ensureStyleRuleList()->append(m_matchedRules[i].ruleData()->rule());
+ ensureStyleRuleList()->push_back(m_matchedRules[i].ruleData()->rule());
return;
}
@@ -342,7 +342,7 @@ void ElementRuleCollector::didMatchRule(
if (m_style && ruleData.containsUncommonAttributeSelector())
m_style->setUnique();
- m_matchedRules.append(
+ m_matchedRules.push_back(
MatchedRule(&ruleData, result.specificity, cascadeOrder,
matchRequest.styleSheetIndex, matchRequest.styleSheet));
}
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSVariableData.cpp ('k') | third_party/WebKit/Source/core/css/FontFace.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698