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

Unified Diff: third_party/WebKit/Source/core/svg/SVGAnimatedString.h

Issue 2436793002: Simplify SVGAnimated* initialization (Closed)
Patch Set: Created 4 years, 2 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/SVGAnimatedString.h
diff --git a/third_party/WebKit/Source/core/svg/SVGAnimatedString.h b/third_party/WebKit/Source/core/svg/SVGAnimatedString.h
index 77d9d0f4eb9981f4171bd96408d86a189ebf2714..8e7c1ef2645dbf9d5a06659faa6992d93590a3d3 100644
--- a/third_party/WebKit/Source/core/svg/SVGAnimatedString.h
+++ b/third_party/WebKit/Source/core/svg/SVGAnimatedString.h
@@ -43,9 +43,8 @@ class SVGAnimatedString : public SVGAnimatedProperty<SVGString>,
public:
static SVGAnimatedString* create(SVGElement* contextElement,
- const QualifiedName& attributeName,
- SVGString* initialValue) {
- return new SVGAnimatedString(contextElement, attributeName, initialValue);
+ const QualifiedName& attributeName) {
+ return new SVGAnimatedString(contextElement, attributeName);
}
virtual String baseVal();
@@ -56,11 +55,10 @@ class SVGAnimatedString : public SVGAnimatedProperty<SVGString>,
protected:
SVGAnimatedString(SVGElement* contextElement,
- const QualifiedName& attributeName,
- SVGString* initialValue)
+ const QualifiedName& attributeName)
: SVGAnimatedProperty<SVGString>(contextElement,
attributeName,
- initialValue) {}
+ SVGString::create()) {}
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698