#define SVGViewSpec_h
#include "bindings/v8/ScriptWrappable.h"
-#include "core/svg/SVGAnimatedPreserveAspectRatio.h"
-#include "core/svg/SVGAnimatedRect.h"
#include "core/svg/SVGFitToViewBox.h"
#include "core/svg/SVGSVGElement.h"
#include "core/svg/SVGTransformList.h"
namespace WebCore {
-class ExceptionState;
class SVGTransformListPropertyTearOff;
class SVGViewSpec FINAL : public RefCounted<SVGViewSpec>, public ScriptWrappable, public SVGZoomAndPan, public SVGFitToViewBox {
void setViewTargetString(const String& string) { m_viewTargetString = string; }
String viewTargetString() const { return m_viewTargetString; }
- SVGZoomAndPanType zoomAndPan() const { return m_zoomAndPan; }
- void setZoomAndPan(unsigned short zoomAndPan) { setZoomAndPanBaseValue(zoomAndPan); }
- void setZoomAndPan(unsigned short, ExceptionState&);
- void setZoomAndPanBaseValue(unsigned short zoomAndPan) { m_zoomAndPan = SVGZoomAndPan::parseFromNumber(zoomAndPan); }
-
SVGElement* contextElement() const { return m_contextElement; }
void detachContextElement();
SVGTransformListPropertyTearOff* transform();
SVGTransformList transformBaseValue() const { return m_transform; }
- SVGAnimatedRect* viewBox() { return m_viewBox.get(); }
- SVGAnimatedPreserveAspectRatio* preserveAspectRatio() { return m_preserveAspectRatio.get(); }
-
private:
explicit SVGViewSpec(SVGSVGElement*);
// FIXME(oilpan): This is back-ptr to be cleared from contextElement.
SVGSVGElement* m_contextElement;
-
- SVGZoomAndPanType m_zoomAndPan;
SVGTransformList m_transform;
- RefPtr<SVGAnimatedRect> m_viewBox;
- RefPtr<SVGAnimatedPreserveAspectRatio> m_preserveAspectRatio;
String m_viewTargetString;
};