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

Unified Diff: Source/core/svg/SVGViewSpec.h

Issue 132233010: [SVG] SVGAnimatedRect migration to new SVG property impl. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebsaed Created 6 years, 11 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/SVGViewElement.cpp ('k') | Source/core/svg/SVGViewSpec.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGViewSpec.h
diff --git a/Source/core/svg/SVGViewSpec.h b/Source/core/svg/SVGViewSpec.h
index c5d742f5daa023c553a13970d96437f7773f1660..05d7537c94559faec40146a8fd79581308e1d400 100644
--- a/Source/core/svg/SVGViewSpec.h
+++ b/Source/core/svg/SVGViewSpec.h
@@ -70,10 +70,7 @@ public:
SVGTransformList transformBaseValue() const { return m_transform; }
// Custom animated 'viewBox' property.
- PassRefPtr<SVGAnimatedRect> viewBox();
- SVGRect& viewBoxCurrentValue() { return m_viewBox; }
- SVGRect viewBoxBaseValue() const { return m_viewBox; }
- void setViewBoxBaseValue(const SVGRect& viewBox) { m_viewBox = viewBox; }
+ SVGAnimatedRect* viewBox() { return m_viewBox.get(); }
// Custom animated 'preserveAspectRatio' property.
PassRefPtr<SVGAnimatedPreserveAspectRatio> preserveAspectRatio();
@@ -85,15 +82,12 @@ private:
explicit SVGViewSpec(WeakPtr<SVGSVGElement>);
static const SVGPropertyInfo* transformPropertyInfo();
- static const SVGPropertyInfo* viewBoxPropertyInfo();
static const SVGPropertyInfo* preserveAspectRatioPropertyInfo();
static const AtomicString& transformIdentifier();
- static const AtomicString& viewBoxIdentifier();
static const AtomicString& preserveAspectRatioIdentifier();
static PassRefPtr<SVGAnimatedProperty> lookupOrCreateTransformWrapper(SVGViewSpec* contextElement);
- static PassRefPtr<SVGAnimatedProperty> lookupOrCreateViewBoxWrapper(SVGViewSpec* contextElement);
static PassRefPtr<SVGAnimatedProperty> lookupOrCreatePreserveAspectRatioWrapper(SVGViewSpec* contextElement);
template<typename CharType>
@@ -103,7 +97,7 @@ private:
SVGZoomAndPanType m_zoomAndPan;
SVGTransformList m_transform;
- SVGRect m_viewBox;
+ RefPtr<SVGAnimatedRect> m_viewBox;
SVGPreserveAspectRatio m_preserveAspectRatio;
String m_viewTargetString;
};
« no previous file with comments | « Source/core/svg/SVGViewElement.cpp ('k') | Source/core/svg/SVGViewSpec.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698