summaryrefslogtreecommitdiff
path: root/Source/WebCore/svg/SVGViewElement.h
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
commit1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch)
tree46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebCore/svg/SVGViewElement.h
parent32761a6cee1d0dee366b885b7b9c777e67885688 (diff)
downloadWebKitGtk-tarball-master.tar.gz
Diffstat (limited to 'Source/WebCore/svg/SVGViewElement.h')
-rw-r--r--Source/WebCore/svg/SVGViewElement.h31
1 files changed, 11 insertions, 20 deletions
diff --git a/Source/WebCore/svg/SVGViewElement.h b/Source/WebCore/svg/SVGViewElement.h
index 35b954a8a..081cd1d49 100644
--- a/Source/WebCore/svg/SVGViewElement.h
+++ b/Source/WebCore/svg/SVGViewElement.h
@@ -18,32 +18,29 @@
* Boston, MA 02110-1301, USA.
*/
-#ifndef SVGViewElement_h
-#define SVGViewElement_h
+#pragma once
-#if ENABLE(SVG)
#include "SVGAnimatedBoolean.h"
#include "SVGAnimatedPreserveAspectRatio.h"
#include "SVGAnimatedRect.h"
#include "SVGElement.h"
#include "SVGExternalResourcesRequired.h"
#include "SVGFitToViewBox.h"
-#include "SVGStringList.h"
+#include "SVGStringListValues.h"
#include "SVGZoomAndPan.h"
namespace WebCore {
-class SVGViewElement final : public SVGElement,
- public SVGExternalResourcesRequired,
- public SVGFitToViewBox,
- public SVGZoomAndPan {
+class SVGStringList;
+
+class SVGViewElement final : public SVGElement, public SVGExternalResourcesRequired, public SVGFitToViewBox, public SVGZoomAndPan {
public:
- static PassRefPtr<SVGViewElement> create(const QualifiedName&, Document&);
+ static Ref<SVGViewElement> create(const QualifiedName&, Document&);
using SVGElement::ref;
using SVGElement::deref;
- SVGStringList& viewTarget() { return m_viewTarget; }
+ Ref<SVGStringList> viewTarget();
SVGZoomAndPanType zoomAndPan() const { return m_zoomAndPan; }
void setZoomAndPan(unsigned short zoomAndPan) { m_zoomAndPan = SVGZoomAndPan::parseFromNumber(zoomAndPan); }
@@ -51,24 +48,18 @@ private:
SVGViewElement(const QualifiedName&, Document&);
// FIXME: svgAttributeChanged missing.
- bool isSupportedAttribute(const QualifiedName&);
- virtual void parseAttribute(const QualifiedName&, const AtomicString&) override;
+ void parseAttribute(const QualifiedName&, const AtomicString&) final;
- virtual bool rendererIsNeeded(const RenderStyle&) override { return false; }
+ bool rendererIsNeeded(const RenderStyle&) final { return false; }
BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGViewElement)
- DECLARE_ANIMATED_BOOLEAN(ExternalResourcesRequired, externalResourcesRequired)
+ DECLARE_ANIMATED_BOOLEAN_OVERRIDE(ExternalResourcesRequired, externalResourcesRequired)
DECLARE_ANIMATED_RECT(ViewBox, viewBox)
DECLARE_ANIMATED_PRESERVEASPECTRATIO(PreserveAspectRatio, preserveAspectRatio)
END_DECLARE_ANIMATED_PROPERTIES
SVGZoomAndPanType m_zoomAndPan;
- SVGStringList m_viewTarget;
+ SVGStringListValues m_viewTarget;
};
-NODE_TYPE_CASTS(SVGViewElement)
-
} // namespace WebCore
-
-#endif // ENABLE(SVG)
-#endif