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

Unified Diff: Source/core/svg/SVGFitToViewBox.cpp

Issue 1025883002: Oilpan: revert SVG GC mixin constructor workaround. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 9 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
« no previous file with comments | « Source/core/svg/SVGFitToViewBox.h ('k') | Source/core/svg/SVGGradientElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGFitToViewBox.cpp
diff --git a/Source/core/svg/SVGFitToViewBox.cpp b/Source/core/svg/SVGFitToViewBox.cpp
index 418f29d85e1ada76e851a000b742ef549a2b4bad..6771cd73f29a38633be1f1f944aaa81a56436817 100644
--- a/Source/core/svg/SVGFitToViewBox.cpp
+++ b/Source/core/svg/SVGFitToViewBox.cpp
@@ -66,19 +66,11 @@ void SVGAnimatedViewBoxRect::setBaseValueAsString(const String& value, SVGParsin
}
}
-SVGFitToViewBox::SVGFitToViewBox()
+SVGFitToViewBox::SVGFitToViewBox(SVGElement* element, PropertyMapPolicy propertyMapPolicy)
+ : m_viewBox(SVGAnimatedViewBoxRect::create(element))
+ , m_preserveAspectRatio(SVGAnimatedPreserveAspectRatio::create(element, SVGNames::preserveAspectRatioAttr, SVGPreserveAspectRatio::create()))
{
-}
-
-void SVGFitToViewBox::initialize(SVGElement* element, PropertyMapPolicy propertyMapPolicy)
-{
- ASSERT(!m_viewBox);
- ASSERT(!m_preserveAspectRatio);
ASSERT(element);
-
- m_viewBox = SVGAnimatedViewBoxRect::create(element);
- m_preserveAspectRatio = SVGAnimatedPreserveAspectRatio::create(element, SVGNames::preserveAspectRatioAttr, SVGPreserveAspectRatio::create());
-
if (propertyMapPolicy == PropertyMapPolicyAdd) {
element->addToPropertyMap(m_viewBox);
element->addToPropertyMap(m_preserveAspectRatio);
« no previous file with comments | « Source/core/svg/SVGFitToViewBox.h ('k') | Source/core/svg/SVGGradientElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698