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

Unified Diff: third_party/WebKit/Source/core/svg/SVGAnimatedTransformList.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/SVGAnimatedTransformList.h
diff --git a/third_party/WebKit/Source/core/svg/SVGAnimatedTransformList.h b/third_party/WebKit/Source/core/svg/SVGAnimatedTransformList.h
index c5c10b160165c664437b479a123a36fbe201f196..2a411f25d7dc33daaba55555e0adeeb9118c4569 100644
--- a/third_party/WebKit/Source/core/svg/SVGAnimatedTransformList.h
+++ b/third_party/WebKit/Source/core/svg/SVGAnimatedTransformList.h
@@ -46,10 +46,8 @@ class SVGAnimatedTransformList final
public:
static SVGAnimatedTransformList* create(SVGElement* contextElement,
- const QualifiedName& attributeName,
- SVGTransformList* initialValue) {
- return new SVGAnimatedTransformList(contextElement, attributeName,
- initialValue);
+ const QualifiedName& attributeName) {
+ return new SVGAnimatedTransformList(contextElement, attributeName);
}
DEFINE_INLINE_VIRTUAL_TRACE_WRAPPERS() {
@@ -58,11 +56,10 @@ class SVGAnimatedTransformList final
protected:
SVGAnimatedTransformList(SVGElement* contextElement,
- const QualifiedName& attributeName,
- SVGTransformList* initialValue)
+ const QualifiedName& attributeName)
: SVGAnimatedProperty<SVGTransformList>(contextElement,
attributeName,
- initialValue) {}
+ SVGTransformList::create()) {}
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698