Commit 27652dad authored by Abhijeet Kandalkar's avatar Abhijeet Kandalkar Committed by Commit Bot

Use new downcast helper for blink::SVGFEFuncAElement

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

Bug: 891908
Change-Id: I65623bbd4c08093fc2f0e8bcdc7d565c79d1adc1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1936577Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Commit-Queue: Abhijeet | Igalia <abhijeet@igalia.com>
Cr-Commit-Position: refs/heads/master@{#720254}
parent 54e43b59
......@@ -75,7 +75,7 @@ FilterEffect* SVGFEComponentTransferElement::Build(
green = func_g->TransferFunction();
else if (auto* func_b = ToSVGFEFuncBElementOrNull(*element))
blue = func_b->TransferFunction();
else if (auto* func_a = ToSVGFEFuncAElementOrNull(*element))
else if (auto* func_a = DynamicTo<SVGFEFuncAElement>(*element))
alpha = func_a->TransferFunction();
}
......
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