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

Unified Diff: third_party/WebKit/Source/core/xml/parser/XMLErrors.cpp

Issue 2617783002: Migrate WTF::Vector::append() to ::push_back() [part 12 of N] (Closed)
Patch Set: rebase Created 3 years, 11 months 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
« no previous file with comments | « third_party/WebKit/Source/core/xml/XSLStyleSheetLibxslt.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/xml/parser/XMLErrors.cpp
diff --git a/third_party/WebKit/Source/core/xml/parser/XMLErrors.cpp b/third_party/WebKit/Source/core/xml/parser/XMLErrors.cpp
index 30755ef22ce5a1d2ced490dc2ec345e7fdfa10ae..4fcb54a67c04d1710dda78436249291d5e8b9ccf 100644
--- a/third_party/WebKit/Source/core/xml/parser/XMLErrors.cpp
+++ b/third_party/WebKit/Source/core/xml/parser/XMLErrors.cpp
@@ -102,7 +102,7 @@ static inline Element* createXHTMLParserErrorHeader(
CreatedByParser);
Vector<Attribute> reportAttributes;
- reportAttributes.append(Attribute(
+ reportAttributes.push_back(Attribute(
styleAttr,
"display: block; white-space: pre; border: 2px solid #c77; padding: 0 "
"1em 0 1em; margin: 1em; background-color: #fdd; color: black"));
@@ -115,7 +115,7 @@ static inline Element* createXHTMLParserErrorHeader(
Element* fixed = doc->createElement(divTag, CreatedByParser);
Vector<Attribute> fixedAttributes;
- fixedAttributes.append(
+ fixedAttributes.push_back(
Attribute(styleAttr, "font-family:monospace;font-size:12px"));
fixed->parserSetAttributes(fixedAttributes);
reportElement->parserAppendChild(fixed);
@@ -170,7 +170,7 @@ void XMLErrors::insertErrorMessageBlock() {
if (DocumentXSLT::hasTransformSourceDocument(*m_document)) {
Vector<Attribute> attributes;
- attributes.append(Attribute(styleAttr, "white-space: normal"));
+ attributes.push_back(Attribute(styleAttr, "white-space: normal"));
Element* paragraph = m_document->createElement(pTag, CreatedByParser);
paragraph->parserSetAttributes(attributes);
paragraph->parserAppendChild(m_document->createTextNode(
« no previous file with comments | « third_party/WebKit/Source/core/xml/XSLStyleSheetLibxslt.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698