#include "SVGNames.h"
#include "core/svg/SVGAnimatedBoolean.h"
-#include "core/svg/SVGAnimatedPreserveAspectRatio.h"
-#include "core/svg/SVGAnimatedRect.h"
#include "core/svg/SVGElement.h"
#include "core/svg/SVGFitToViewBox.h"
-#include "core/svg/SVGStringList.h"
+#include "core/svg/SVGStaticStringList.h"
#include "core/svg/SVGZoomAndPan.h"
namespace WebCore {
using SVGElement::ref;
using SVGElement::deref;
- SVGAnimatedRect* viewBox() { return m_viewBox.get(); }
-
- SVGStringList& viewTarget() { return m_viewTarget; }
- SVGZoomAndPanType zoomAndPan() const { return m_zoomAndPan; }
- void setZoomAndPan(unsigned short zoomAndPan) { m_zoomAndPan = SVGZoomAndPan::parseFromNumber(zoomAndPan); }
- SVGAnimatedPreserveAspectRatio* preserveAspectRatio() { return m_preserveAspectRatio.get(); }
+ SVGStringListTearOff* viewTarget() { return m_viewTarget->tearOff(); }
private:
explicit SVGViewElement(Document&);
virtual bool rendererIsNeeded(const RenderStyle&) OVERRIDE { return false; }
- RefPtr<SVGAnimatedRect> m_viewBox;
- RefPtr<SVGAnimatedPreserveAspectRatio> m_preserveAspectRatio;
+ RefPtr<SVGStaticStringList> m_viewTarget;
BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGViewElement)
END_DECLARE_ANIMATED_PROPERTIES
-
- SVGZoomAndPanType m_zoomAndPan;
- SVGStringList m_viewTarget;
};
DEFINE_NODE_TYPE_CASTS(SVGViewElement, hasTagName(SVGNames::viewTag));