Commit 69f47287 authored by Abhijeet Kandalkar's avatar Abhijeet Kandalkar Committed by Commit Bot

Use new downcast helper for blink::SVGSetElement

This CL has goal to use IsA<SVGSetElement>(element) in place of
IsSVGSetElement(element)

Bug: 891908
Change-Id: I88613d67d85f96821fc70441cc24e341b70ce19b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1936620Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Commit-Queue: Abhijeet | Igalia <abhijeet@igalia.com>
Cr-Commit-Position: refs/heads/master@{#720496}
parent ebdfec10
...@@ -1005,7 +1005,7 @@ SMILTime SVGSMILElement::NextProgressTime(SMILTime presentation_time) const { ...@@ -1005,7 +1005,7 @@ SMILTime SVGSMILElement::NextProgressTime(SMILTime presentation_time) const {
// If duration is indefinite the value does not actually change over time. // If duration is indefinite the value does not actually change over time.
// Same is true for <set>. // Same is true for <set>.
SMILTime simple_duration = SimpleDuration(); SMILTime simple_duration = SimpleDuration();
if (simple_duration.IsIndefinite() || IsSVGSetElement(*this)) { if (simple_duration.IsIndefinite() || IsA<SVGSetElement>(*this)) {
SMILTime repeating_duration_end = interval_.begin + RepeatingDuration(); SMILTime repeating_duration_end = interval_.begin + RepeatingDuration();
// We are supposed to do freeze semantics when repeating ends, even if the // We are supposed to do freeze semantics when repeating ends, even if the
// element is still active. // element is still active.
......
...@@ -351,7 +351,7 @@ void SVGAnimateElement::CalculateAnimatedValue( ...@@ -351,7 +351,7 @@ void SVGAnimateElement::CalculateAnimatedValue(
DCHECK_EQ(result_animation_element->GetAnimatedPropertyType(), DCHECK_EQ(result_animation_element->GetAnimatedPropertyType(),
GetAnimatedPropertyType()); GetAnimatedPropertyType());
if (IsSVGSetElement(*this)) if (IsA<SVGSetElement>(*this))
percentage = 1; percentage = 1;
if (GetCalcMode() == kCalcModeDiscrete) if (GetCalcMode() == kCalcModeDiscrete)
...@@ -420,7 +420,7 @@ bool SVGAnimateElement::CalculateFromAndByValues(const String& from_string, ...@@ -420,7 +420,7 @@ bool SVGAnimateElement::CalculateFromAndByValues(const String& from_string,
!AnimatedPropertyTypeSupportsAddition()) !AnimatedPropertyTypeSupportsAddition())
return false; return false;
DCHECK(!IsSVGSetElement(*this)); DCHECK(!IsA<SVGSetElement>(*this));
from_property_ = CreatePropertyForAnimation(from_string); from_property_ = CreatePropertyForAnimation(from_string);
from_property_value_type_ = PropertyValueType(AttributeName(), from_string); from_property_value_type_ = PropertyValueType(AttributeName(), from_string);
......
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