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

Unified Diff: third_party/WebKit/Source/core/svg/SVGAnimatedPreserveAspectRatio.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/SVGAnimatedPreserveAspectRatio.h
diff --git a/third_party/WebKit/Source/core/svg/SVGAnimatedPreserveAspectRatio.h b/third_party/WebKit/Source/core/svg/SVGAnimatedPreserveAspectRatio.h
index 4ed6fd8f72a09b1508e51c0a6a7ab2aa60f91fae..9d6228aa54a9f696de9b687bcc6aa11d48e72ebc 100644
--- a/third_party/WebKit/Source/core/svg/SVGAnimatedPreserveAspectRatio.h
+++ b/third_party/WebKit/Source/core/svg/SVGAnimatedPreserveAspectRatio.h
@@ -45,10 +45,8 @@ class SVGAnimatedPreserveAspectRatio
public:
static SVGAnimatedPreserveAspectRatio* create(
SVGElement* contextElement,
- const QualifiedName& attributeName,
- SVGPreserveAspectRatio* initialValue) {
- return new SVGAnimatedPreserveAspectRatio(contextElement, attributeName,
- initialValue);
+ const QualifiedName& attributeName) {
+ return new SVGAnimatedPreserveAspectRatio(contextElement, attributeName);
}
DEFINE_INLINE_VIRTUAL_TRACE_WRAPPERS() {
@@ -57,11 +55,11 @@ class SVGAnimatedPreserveAspectRatio
protected:
SVGAnimatedPreserveAspectRatio(SVGElement* contextElement,
- const QualifiedName& attributeName,
- SVGPreserveAspectRatio* initialValue)
- : SVGAnimatedProperty<SVGPreserveAspectRatio>(contextElement,
- attributeName,
- initialValue) {}
+ const QualifiedName& attributeName)
+ : SVGAnimatedProperty<SVGPreserveAspectRatio>(
+ contextElement,
+ attributeName,
+ SVGPreserveAspectRatio::create()) {}
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGAnimatedNumberList.h ('k') | third_party/WebKit/Source/core/svg/SVGAnimatedString.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698