Commit c2e907ce authored by Abhijeet Kandalkar's avatar Abhijeet Kandalkar Committed by Commit Bot

Use new downcast helper for blink::SVGPolylineElement

This CL has goal to use IsA<SVGPolylineElement>(element) in place of
IsSVGPolylineElement(element)

Bug: 891908
Change-Id: Icf9966502255b06ee97ea085374054d3498d4b05
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1936616Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Commit-Queue: Abhijeet | Igalia <abhijeet@igalia.com>
Cr-Commit-Position: refs/heads/master@{#720116}
parent 2fdf2af5
...@@ -49,7 +49,7 @@ bool TargetCanHaveMotionTransform(const SVGElement& target) { ...@@ -49,7 +49,7 @@ bool TargetCanHaveMotionTransform(const SVGElement& target) {
IsSVGSwitchElement(target) || IsSVGPathElement(target) || IsSVGSwitchElement(target) || IsSVGPathElement(target) ||
IsSVGRectElement(target) || IsSVGCircleElement(target) || IsSVGRectElement(target) || IsSVGCircleElement(target) ||
IsSVGEllipseElement(target) || IsA<SVGLineElement>(target) || IsSVGEllipseElement(target) || IsA<SVGLineElement>(target) ||
IsSVGPolylineElement(target) || IsSVGPolygonElement(target) || IsA<SVGPolylineElement>(target) || IsSVGPolygonElement(target) ||
IsSVGTextElement(target) || IsSVGClipPathElement(target) || IsSVGTextElement(target) || IsSVGClipPathElement(target) ||
IsSVGMaskElement(target) || IsSVGAElement(target) || IsSVGMaskElement(target) || IsSVGAElement(target) ||
IsSVGForeignObjectElement(target); IsSVGForeignObjectElement(target);
......
...@@ -499,7 +499,7 @@ LayoutObject* SVGUseElement::CreateLayoutObject(const ComputedStyle& style, ...@@ -499,7 +499,7 @@ LayoutObject* SVGUseElement::CreateLayoutObject(const ComputedStyle& style,
static bool IsDirectReference(const SVGElement& element) { static bool IsDirectReference(const SVGElement& element) {
return IsSVGPathElement(element) || IsSVGRectElement(element) || return IsSVGPathElement(element) || IsSVGRectElement(element) ||
IsSVGCircleElement(element) || IsSVGEllipseElement(element) || IsSVGCircleElement(element) || IsSVGEllipseElement(element) ||
IsSVGPolygonElement(element) || IsSVGPolylineElement(element) || IsSVGPolygonElement(element) || IsA<SVGPolylineElement>(element) ||
IsSVGTextElement(element); IsSVGTextElement(element);
} }
......
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