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

Unified Diff: third_party/WebKit/Source/core/svg/UnsafeSVGAttributeSanitizationTest.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
Index: third_party/WebKit/Source/core/svg/UnsafeSVGAttributeSanitizationTest.cpp
diff --git a/third_party/WebKit/Source/core/svg/UnsafeSVGAttributeSanitizationTest.cpp b/third_party/WebKit/Source/core/svg/UnsafeSVGAttributeSanitizationTest.cpp
index 1917b43d5a586d530e55eab0dddd1bf73237ee85..d2c68ce96358e2d9cf4f75020e578722e52848c3 100644
--- a/third_party/WebKit/Source/core/svg/UnsafeSVGAttributeSanitizationTest.cpp
+++ b/third_party/WebKit/Source/core/svg/UnsafeSVGAttributeSanitizationTest.cpp
@@ -287,10 +287,10 @@ TEST(UnsafeSVGAttributeSanitizationTest, stringsShouldNotSupportAddition) {
TEST(UnsafeSVGAttributeSanitizationTest,
stripScriptingAttributes_animateElement) {
Vector<Attribute> attributes;
- attributes.append(Attribute(XLinkNames::hrefAttr, "javascript:alert()"));
- attributes.append(Attribute(SVGNames::hrefAttr, "javascript:alert()"));
- attributes.append(Attribute(SVGNames::fromAttr, "/home"));
- attributes.append(Attribute(SVGNames::toAttr, "javascript:own3d()"));
+ attributes.push_back(Attribute(XLinkNames::hrefAttr, "javascript:alert()"));
+ attributes.push_back(Attribute(SVGNames::hrefAttr, "javascript:alert()"));
+ attributes.push_back(Attribute(SVGNames::fromAttr, "/home"));
+ attributes.push_back(Attribute(SVGNames::toAttr, "javascript:own3d()"));
Document* document = Document::create();
Element* element = SVGAnimateElement::create(*document);

Powered by Google App Engine
This is Rietveld 408576698