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

Unified Diff: third_party/WebKit/Source/core/svg/SVGFitToViewBox.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/SVGFitToViewBox.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGFitToViewBox.cpp b/third_party/WebKit/Source/core/svg/SVGFitToViewBox.cpp
index 154411531c117322c043d46095425c411c0a83ce..f4234dee81b8875c7cd63a6bf3b7f0d7bd37bea6 100644
--- a/third_party/WebKit/Source/core/svg/SVGFitToViewBox.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGFitToViewBox.cpp
@@ -61,8 +61,7 @@ SVGFitToViewBox::SVGFitToViewBox(SVGElement* element,
: m_viewBox(SVGAnimatedViewBoxRect::create(element)),
m_preserveAspectRatio(SVGAnimatedPreserveAspectRatio::create(
element,
- SVGNames::preserveAspectRatioAttr,
- SVGPreserveAspectRatio::create())) {
+ SVGNames::preserveAspectRatioAttr)) {
ASSERT(element);
if (propertyMapPolicy == PropertyMapPolicyAdd) {
element->addToPropertyMap(m_viewBox);

Powered by Google App Engine
This is Rietveld 408576698