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

Unified Diff: third_party/WebKit/Source/core/svg/SVGAnimatedBoolean.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/SVGAnimatedBoolean.h
diff --git a/third_party/WebKit/Source/core/svg/SVGAnimatedBoolean.h b/third_party/WebKit/Source/core/svg/SVGAnimatedBoolean.h
index 9ea1602b142661ad88674ca003205bcc104e13c5..21adb5bdcd662c6a559a8d42aa597daf1ef0534d 100644
--- a/third_party/WebKit/Source/core/svg/SVGAnimatedBoolean.h
+++ b/third_party/WebKit/Source/core/svg/SVGAnimatedBoolean.h
@@ -43,9 +43,8 @@ class SVGAnimatedBoolean final : public SVGAnimatedProperty<SVGBoolean>,
public:
static SVGAnimatedBoolean* create(SVGElement* contextElement,
- const QualifiedName& attributeName,
- SVGBoolean* initialValue) {
- return new SVGAnimatedBoolean(contextElement, attributeName, initialValue);
+ const QualifiedName& attributeName) {
+ return new SVGAnimatedBoolean(contextElement, attributeName);
}
DEFINE_INLINE_VIRTUAL_TRACE_WRAPPERS() {
@@ -54,11 +53,10 @@ class SVGAnimatedBoolean final : public SVGAnimatedProperty<SVGBoolean>,
protected:
SVGAnimatedBoolean(SVGElement* contextElement,
- const QualifiedName& attributeName,
- SVGBoolean* initialValue)
+ const QualifiedName& attributeName)
: SVGAnimatedProperty<SVGBoolean>(contextElement,
attributeName,
- initialValue) {}
+ SVGBoolean::create()) {}
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGAElement.cpp ('k') | third_party/WebKit/Source/core/svg/SVGAnimatedHref.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698