Index: Source/core/svg/SVGImageElement.h |
diff --git a/Source/core/svg/SVGImageElement.h b/Source/core/svg/SVGImageElement.h |
index 9dd3f421f90ce55f1177c06b77211f40ad0dea7c..9f78f4068e906afa30d08df77642a181bbedc6fb 100644 |
--- a/Source/core/svg/SVGImageElement.h |
+++ b/Source/core/svg/SVGImageElement.h |
@@ -21,6 +21,7 @@ |
#ifndef SVGImageElement_h |
#define SVGImageElement_h |
+#include "SVGNames.h" |
#include "core/svg/SVGAnimatedBoolean.h" |
#include "core/svg/SVGAnimatedLength.h" |
#include "core/svg/SVGAnimatedPreserveAspectRatio.h" |
@@ -75,6 +76,12 @@ private: |
SVGImageLoader m_imageLoader; |
}; |
+inline SVGImageElement* toSVGImageElement(Node* node) |
+{ |
+ ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(SVGNames::imageTag)); |
+ return static_cast<SVGImageElement*>(node); |
+} |
+ |
} // namespace WebCore |
#endif |