Index: Source/core/rendering/svg/RenderSVGResourceMasker.cpp |
diff --git a/Source/core/rendering/svg/RenderSVGResourceMasker.cpp b/Source/core/rendering/svg/RenderSVGResourceMasker.cpp |
index 6de3e98c3136ed656bd535af6a9e3b48fed8de8e..ad9631da31e3ee2e9c899cba97f49a89e000e223 100644 |
--- a/Source/core/rendering/svg/RenderSVGResourceMasker.cpp |
+++ b/Source/core/rendering/svg/RenderSVGResourceMasker.cpp |
@@ -91,7 +91,7 @@ bool RenderSVGResourceMasker::applyResource(RenderObject* object, RenderStyle*, |
FloatRect repaintRect = object->repaintRectInLocalCoordinates(); |
if (!maskerData->maskImage && !repaintRect.isEmpty()) { |
- SVGMaskElement* maskElement = static_cast<SVGMaskElement*>(node()); |
+ SVGMaskElement* maskElement = toSVGMaskElement(node()); |
if (!maskElement) |
return false; |
@@ -167,7 +167,7 @@ void RenderSVGResourceMasker::calculateMaskContentRepaintRect() |
FloatRect RenderSVGResourceMasker::resourceBoundingBox(RenderObject* object) |
{ |
- SVGMaskElement* maskElement = static_cast<SVGMaskElement*>(node()); |
+ SVGMaskElement* maskElement = toSVGMaskElement(node()); |
ASSERT(maskElement); |
FloatRect objectBoundingBox = object->objectBoundingBox(); |