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

Use new downcast helper for blink::SVGStopElement

This CL has goal to use IsA<SVGStopElement>(element) in place of
IsSVGStopElement(element)

Bug: 891908
Change-Id: Iba08d8b45ee7440957528beccccbea6ad3d4378f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1936621Reviewed-by: default avatarJeremy Roman <jbroman@chromium.org>
Reviewed-by: default avatarChristian Biesinger <cbiesinger@chromium.org>
Commit-Queue: Abhijeet | Igalia <abhijeet@igalia.com>
Cr-Commit-Position: refs/heads/master@{#720538}
parent 9030787e
...@@ -5101,7 +5101,7 @@ bool Element::ShouldStoreComputedStyle(const ComputedStyle& style) const { ...@@ -5101,7 +5101,7 @@ bool Element::ShouldStoreComputedStyle(const ComputedStyle& style) const {
if (auto* svg_element = DynamicTo<SVGElement>(this)) { if (auto* svg_element = DynamicTo<SVGElement>(this)) {
if (!svg_element->HasSVGParent()) if (!svg_element->HasSVGParent())
return false; return false;
if (IsSVGStopElement(*this)) if (IsA<SVGStopElement>(*this))
return true; return true;
} }
return style.Display() == EDisplay::kContents; return style.Display() == EDisplay::kContents;
......
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