Rework SMIL interval re-scheduling on target changes
This reworks the way the interval is updated when the animation target changes. The code to handle "connect" and "disconnect" from the time container is moved into new methods AddedTo/RemovedFromTimeContainer(), which does tasks that was previously sprinkled about in SetTargetElement() and InsertedInto() and SMILTimeContainer::Schedule(). The call to ResetCachedAnimationState() in SVGAnimateElement is moved to the "removal" side since we now revalidate the animation state via SVGSMILElement::DidChangeAnimationTarget(). Bug: 998526 Change-Id: Ib6e847330cebc503cbca4a7cbd308b7a7ccc733a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1837832Reviewed-by:Stephen Chenney <schenney@chromium.org> Commit-Queue: Fredrik Söderquist <fs@opera.com> Cr-Commit-Position: refs/heads/master@{#702513}
Showing
Please register or sign in to comment