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

Unified Diff: third_party/WebKit/Source/core/svg/SVGAnimatedNumberList.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/SVGAnimatedNumberList.h
diff --git a/third_party/WebKit/Source/core/svg/SVGAnimatedNumberList.h b/third_party/WebKit/Source/core/svg/SVGAnimatedNumberList.h
index cbd3af13a12adb3a77be075ce5c9b5ecfec8260e..8135142073241b929c3aa3c3bc8806b1fb05b858 100644
--- a/third_party/WebKit/Source/core/svg/SVGAnimatedNumberList.h
+++ b/third_party/WebKit/Source/core/svg/SVGAnimatedNumberList.h
@@ -45,10 +45,8 @@ class SVGAnimatedNumberList final : public SVGAnimatedProperty<SVGNumberList>,
public:
static SVGAnimatedNumberList* create(SVGElement* contextElement,
- const QualifiedName& attributeName,
- SVGNumberList* initialValue) {
- return new SVGAnimatedNumberList(contextElement, attributeName,
- initialValue);
+ const QualifiedName& attributeName) {
+ return new SVGAnimatedNumberList(contextElement, attributeName);
}
DEFINE_INLINE_VIRTUAL_TRACE_WRAPPERS() {
@@ -57,11 +55,10 @@ class SVGAnimatedNumberList final : public SVGAnimatedProperty<SVGNumberList>,
protected:
SVGAnimatedNumberList(SVGElement* contextElement,
- const QualifiedName& attributeName,
- SVGNumberList* initialValue)
+ const QualifiedName& attributeName)
: SVGAnimatedProperty<SVGNumberList>(contextElement,
attributeName,
- initialValue) {}
+ SVGNumberList::create()) {}
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698