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

Unified Diff: third_party/WebKit/Source/core/editing/commands/ApplyStyleCommand.cpp

Issue 2571953004: Migrate WTF::Vector::append() to ::push_back() [part 5 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/editing/commands/ApplyStyleCommand.cpp
diff --git a/third_party/WebKit/Source/core/editing/commands/ApplyStyleCommand.cpp b/third_party/WebKit/Source/core/editing/commands/ApplyStyleCommand.cpp
index c881ff3af6613d00c293eb0867d4aaecdca30910..75abe7dd9c3554cf9461c7f7d3b8100d54e1ae08 100644
--- a/third_party/WebKit/Source/core/editing/commands/ApplyStyleCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/ApplyStyleCommand.cpp
@@ -508,7 +508,7 @@ void ApplyStyleCommand::applyRelativeFontStyleChange(
if (inlineStyle->isEmpty()) {
removeElementAttribute(element, styleAttr);
if (isSpanWithoutAttributesOrUnstyledStyleSpan(element))
- unstyledSpans.append(element);
+ unstyledSpans.push_back(element);
}
}
@@ -1006,7 +1006,7 @@ void ApplyStyleCommand::applyInlineStyleToNodeRange(
if (!shouldApplyInlineStyleToRun(style, runStart, pastEndNode))
continue;
- runs.append(InlineRunToApplyStyle(runStart, runEnd, pastEndNode));
+ runs.push_back(InlineRunToApplyStyle(runStart, runEnd, pastEndNode));
}
for (auto& run : runs) {
@@ -1339,7 +1339,7 @@ void ApplyStyleCommand::pushDownInlineStyleAroundNode(
if (current->isStyledElement() &&
isStyledInlineElementToRemove(toElement(current))) {
styledElement = toElement(current);
- elementsToPushDown.append(styledElement);
+ elementsToPushDown.push_back(styledElement);
}
EditingStyle* styleToPushDown = EditingStyle::create();
@@ -2001,7 +2001,7 @@ void ApplyStyleCommand::joinChildTextNodes(ContainerNode* node,
if (!curr->isTextNode())
continue;
- textNodes.append(toText(curr));
+ textNodes.push_back(toText(curr));
}
for (const auto& textNode : textNodes) {

Powered by Google App Engine
This is Rietveld 408576698