Commit 373d764f authored by Abhijeet Kandalkar's avatar Abhijeet Kandalkar Committed by Commit Bot

Use new downcast helper for blink::SVGFEFuncRElement

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

Bug: 891908
Change-Id: Iff93cc32f1f3052db517a13bd93d621448cedf80
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1936581Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Commit-Queue: Abhijeet | Igalia <abhijeet@igalia.com>
Cr-Commit-Position: refs/heads/master@{#720314}
parent 4435a0a7
......@@ -69,7 +69,7 @@ FilterEffect* SVGFEComponentTransferElement::Build(
for (SVGElement* element = Traversal<SVGElement>::FirstChild(*this); element;
element = Traversal<SVGElement>::NextSibling(*element)) {
if (auto* func_r = ToSVGFEFuncRElementOrNull(*element))
if (auto* func_r = DynamicTo<SVGFEFuncRElement>(*element))
red = func_r->TransferFunction();
else if (auto* func_g = DynamicTo<SVGFEFuncGElement>(*element))
green = func_g->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