| Index: Source/core/svg/graphics/SVGImage.cpp
|
| diff --git a/Source/core/svg/graphics/SVGImage.cpp b/Source/core/svg/graphics/SVGImage.cpp
|
| index 7f254e9f916b9d984b0552b236466b1e0ca35693..bb7fcd16bb5ad40b24a4c91db8baf569d8cd8182 100644
|
| --- a/Source/core/svg/graphics/SVGImage.cpp
|
| +++ b/Source/core/svg/graphics/SVGImage.cpp
|
| @@ -143,13 +143,13 @@ bool SVGImage::currentFrameHasSingleSecurityOrigin() const
|
| // single-origin since these can leak cross-origin information.
|
| ComposedTreeWalker walker(rootElement);
|
| while (Node* node = walker.get()) {
|
| - if (node->hasTagName(SVGNames::foreignObjectTag))
|
| + if (isSVGForeignObjectElement(*node))
|
| return false;
|
| - if (node->hasTagName(SVGNames::imageTag)) {
|
| - if (!toSVGImageElement(node)->currentFrameHasSingleSecurityOrigin())
|
| + if (isSVGImageElement(*node)) {
|
| + if (!toSVGImageElement(*node).currentFrameHasSingleSecurityOrigin())
|
| return false;
|
| - } else if (node->hasTagName(SVGNames::feImageTag)) {
|
| - if (!toSVGFEImageElement(node)->currentFrameHasSingleSecurityOrigin())
|
| + } else if (isSVGFEImageElement(*node)) {
|
| + if (!toSVGFEImageElement(*node).currentFrameHasSingleSecurityOrigin())
|
| return false;
|
| }
|
| walker.next();
|
|
|