Commit 7bbd479c authored by Abhijeet Kandalkar's avatar Abhijeet Kandalkar Committed by Commit Bot

Use new downcast helper for blink::SVGMPathElement

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

Bug: 891908
Change-Id: I65766f82e3d2834b5bad1c76397380cdfee12479
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1936610Reviewed-by: default avatarChristian Biesinger <cbiesinger@chromium.org>
Commit-Queue: Abhijeet | Igalia <abhijeet@igalia.com>
Cr-Commit-Position: refs/heads/master@{#719676}
parent 6cd33735
...@@ -117,7 +117,7 @@ void SVGPathElement::InvalidateMPathDependencies() { ...@@ -117,7 +117,7 @@ void SVGPathElement::InvalidateMPathDependencies() {
// dependencies manually. // dependencies manually.
if (SVGElementSet* dependencies = SetOfIncomingReferences()) { if (SVGElementSet* dependencies = SetOfIncomingReferences()) {
for (SVGElement* element : *dependencies) { for (SVGElement* element : *dependencies) {
if (auto* mpath = ToSVGMPathElementOrNull(*element)) if (auto* mpath = DynamicTo<SVGMPathElement>(*element))
mpath->TargetPathChanged(); mpath->TargetPathChanged();
} }
} }
......
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