Commit 9a25471c authored by Abhijeet Kandalkar's avatar Abhijeet Kandalkar Committed by Commit Bot

Use new downcast helper for blink::SVGFEImageElement

This CL has goal to use DynamicTo<SVGFEImageElement> as new downcast
helper

Bug: 891908
Change-Id: Ie98c73604c13c6e3171ae1b050453326b8b1ec1d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1936582Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Commit-Queue: Abhijeet | Igalia <abhijeet@igalia.com>
Cr-Commit-Position: refs/heads/master@{#720312}
parent 64f9b770
......@@ -160,7 +160,7 @@ bool SVGImage::CurrentFrameHasSingleSecurityOrigin() const {
if (auto* image = ToSVGImageElementOrNull(*node)) {
if (!image->CurrentFrameHasSingleSecurityOrigin())
return false;
} else if (auto* fe_image = ToSVGFEImageElementOrNull(*node)) {
} else if (auto* fe_image = DynamicTo<SVGFEImageElement>(*node)) {
if (!fe_image->CurrentFrameHasSingleSecurityOrigin())
return false;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment