Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / core / svg / SVGViewElement.h
index a681428..9c44814 100644 (file)
 
 #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 {
@@ -41,12 +39,7 @@ public:
     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&);
@@ -57,13 +50,9 @@ private:
 
     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));