#ifndef SVGViewSpec_h
#define SVGViewSpec_h
#if ENABLE(SVG)
#include "SVGAnimatedPreserveAspectRatio.h"
#include "SVGAnimatedRect.h"
#include "SVGFitToViewBox.h"
#include "SVGTransformList.h"
#include "SVGZoomAndPan.h"
namespace WebCore {
class SVGElement;
class SVGViewSpec : public SVGFitToViewBox,
public SVGZoomAndPan {
WTF_MAKE_NONCOPYABLE(SVGViewSpec);
public:
SVGViewSpec(SVGElement*);
bool parseViewSpec(const String&);
void setTransform(const String&);
SVGTransformList transform() const { return m_transform; }
void setViewBoxString(const String&);
void setPreserveAspectRatioString(const String&);
void setViewTargetString(const String&);
String viewTargetString() const { return m_viewTargetString; }
SVGElement* viewTarget() const;
SVGElement* contextElement() const { return const_cast<SVGElement*>(m_contextElement); }
private:
SVGElement* m_contextElement;
DECLARE_ANIMATED_RECT(ViewBox, viewBox)
DECLARE_ANIMATED_PRESERVEASPECTRATIO(PreserveAspectRatio, preserveAspectRatio)
SVGTransformList m_transform;
String m_viewTargetString;
};
}
#endif // ENABLE(SVG)
#endif