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

Unified Diff: third_party/WebKit/Source/core/svg/SVGElement.cpp

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/SVGElement.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGElement.cpp b/third_party/WebKit/Source/core/svg/SVGElement.cpp
index c0ce0a4c74c17dd07572d91d4c409ba700e3b4e8..0a4e63b74afc014416ac851b5d35c85ba6dfa0c2 100644
--- a/third_party/WebKit/Source/core/svg/SVGElement.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGElement.cpp
@@ -67,9 +67,7 @@ SVGElement::SVGElement(const QualifiedName& tagName,
m_inRelativeLengthClientsInvalidation(false),
#endif
m_SVGRareData(nullptr),
- m_className(SVGAnimatedString::create(this,
- HTMLNames::classAttr,
- SVGString::create())) {
+ m_className(SVGAnimatedString::create(this, HTMLNames::classAttr)) {
addToPropertyMap(m_className);
setHasCustomStyleCallbacks();
}

Powered by Google App Engine
This is Rietveld 408576698