Refactor SVGSMILElement::MaybeRestartInterval()

The method has been renamed to SVGSMILElement::CheckForNewRestartInterval()
and now returns the new interval instead of setting it directly. This
is to make it easier to track state changes and follow the flow
of the program. It will also make it easier to track down some
bug.

This is the third step in a series of commits to be able
to separate the timing logic from the updating logic. This
aims to make it easier to make upcoming edits.

No changes should be made with this commit in how the
application functions or the runtime, there is however
one slight change in the updating of syncbases. If this
change has any effects is unknown, but it might cause
some syncbases to not update correctly.

Bug: 981522, 641437
Change-Id: I23f8d641d22234e16a6434d6025ea558a13e1fae
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1692576
Reviewed-by: Fredrik Söderquist <fs@opera.com>
Commit-Queue: Edvard Thörnros <edvardt@opera.com>
Cr-Commit-Position: refs/heads/master@{#676014}
2 files changed