summaryrefslogtreecommitdiff
path: root/Source/WebCore/svg/SVGFitToViewBox.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/svg/SVGFitToViewBox.h')
-rw-r--r--Source/WebCore/svg/SVGFitToViewBox.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/Source/WebCore/svg/SVGFitToViewBox.h b/Source/WebCore/svg/SVGFitToViewBox.h
index 02e2a937a..10cd608f5 100644
--- a/Source/WebCore/svg/SVGFitToViewBox.h
+++ b/Source/WebCore/svg/SVGFitToViewBox.h
@@ -18,10 +18,8 @@
* Boston, MA 02110-1301, USA.
*/
-#ifndef SVGFitToViewBox_h
-#define SVGFitToViewBox_h
+#pragma once
-#if ENABLE(SVG)
#include "FloatRect.h"
#include "QualifiedName.h"
#include "SVGNames.h"
@@ -35,7 +33,7 @@ class Document;
class SVGFitToViewBox {
public:
- static AffineTransform viewBoxToViewTransform(const FloatRect& viewBoxRect, const SVGPreserveAspectRatio&, float viewWidth, float viewHeight);
+ static AffineTransform viewBoxToViewTransform(const FloatRect& viewBoxRect, const SVGPreserveAspectRatioValue&, float viewWidth, float viewHeight);
static bool isKnownAttribute(const QualifiedName&);
static void addSupportedAttributes(HashSet<QualifiedName>&);
@@ -52,7 +50,7 @@ public:
}
if (name == SVGNames::preserveAspectRatioAttr) {
- SVGPreserveAspectRatio preserveAspectRatio;
+ SVGPreserveAspectRatioValue preserveAspectRatio;
preserveAspectRatio.parse(value);
target->setPreserveAspectRatioBaseValue(preserveAspectRatio);
return true;
@@ -68,6 +66,3 @@ private:
};
} // namespace WebCore
-
-#endif // ENABLE(SVG)
-#endif // SVGFitToViewBox_h