summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/core/svg/svg_integer.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/renderer/core/svg/svg_integer.cc')
-rw-r--r--chromium/third_party/blink/renderer/core/svg/svg_integer.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chromium/third_party/blink/renderer/core/svg/svg_integer.cc b/chromium/third_party/blink/renderer/core/svg/svg_integer.cc
index e8f277eff7c..a160403c146 100644
--- a/chromium/third_party/blink/renderer/core/svg/svg_integer.cc
+++ b/chromium/third_party/blink/renderer/core/svg/svg_integer.cc
@@ -79,7 +79,7 @@ void SVGInteger::CalculateAnimatedValue(SVGAnimationElement* animation_element,
animation_element->AnimateAdditiveNumber(
percentage, repeat_count, from_integer->Value(), to_integer->Value(),
to_at_end_of_duration_integer->Value(), animated_float);
- value_ = static_cast<int>(roundf(animated_float));
+ value_ = clampTo<int>(roundf(animated_float));
}
float SVGInteger::CalculateDistance(SVGPropertyBase* other, SVGElement*) {