Index: Source/core/svg/SVGLocatable.cpp |
diff --git a/Source/core/svg/SVGLocatable.cpp b/Source/core/svg/SVGLocatable.cpp |
index fdc387836e2ba7aa41c6f53980125b7a0f627677..a8746221750bf7b4c4b5a493adc4d342fad0bb26 100644 |
--- a/Source/core/svg/SVGLocatable.cpp |
+++ b/Source/core/svg/SVGLocatable.cpp |
@@ -28,6 +28,7 @@ |
#include "core/dom/ExceptionCode.h" |
#include "core/rendering/RenderObject.h" |
#include "core/svg/SVGGraphicsElement.h" |
+#include "core/svg/SVGImageElement.h" |
namespace WebCore { |
@@ -36,7 +37,7 @@ static bool isViewportElement(Node* node) |
return (node->hasTagName(SVGNames::svgTag) |
|| node->hasTagName(SVGNames::symbolTag) |
|| node->hasTagName(SVGNames::foreignObjectTag) |
- || node->hasTagName(SVGNames::imageTag)); |
+ || isSVGImageElement(node)); |
} |
SVGElement* SVGLocatable::nearestViewportElement(const SVGElement* element) |