Index: Source/core/rendering/svg/RenderSVGImage.cpp |
diff --git a/Source/core/rendering/svg/RenderSVGImage.cpp b/Source/core/rendering/svg/RenderSVGImage.cpp |
index 5edf820bc06b18b549352c675c29f26704b85a75..7860926bf3f2106e123e882030cd75b95a5efd6d 100644 |
--- a/Source/core/rendering/svg/RenderSVGImage.cpp |
+++ b/Source/core/rendering/svg/RenderSVGImage.cpp |
@@ -57,7 +57,7 @@ RenderSVGImage::~RenderSVGImage() |
bool RenderSVGImage::updateImageViewport() |
{ |
- SVGImageElement* image = static_cast<SVGImageElement*>(node()); |
+ SVGImageElement* image = toSVGImageElement(node()); |
FloatRect oldBoundaries = m_objectBoundingBox; |
bool updatedViewport = false; |
@@ -97,7 +97,7 @@ void RenderSVGImage::layout() |
bool transformOrBoundariesUpdate = m_needsTransformUpdate || m_needsBoundariesUpdate; |
if (m_needsTransformUpdate) { |
- m_localTransform = static_cast<SVGImageElement*>(node())->animatedLocalTransform(); |
+ m_localTransform = toSVGImageElement(node())->animatedLocalTransform(); |
m_needsTransformUpdate = false; |
} |
@@ -162,7 +162,7 @@ void RenderSVGImage::paintForeground(PaintInfo& paintInfo) |
FloatRect destRect = m_objectBoundingBox; |
FloatRect srcRect(0, 0, image->width(), image->height()); |
- SVGImageElement* imageElement = static_cast<SVGImageElement*>(node()); |
+ SVGImageElement* imageElement = toSVGImageElement(node()); |
imageElement->preserveAspectRatio().transformRect(destRect, srcRect); |
bool useLowQualityScaling = false; |