Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1834)

Unified Diff: Source/core/svg/graphics/SVGImageChromeClient.cpp

Issue 369793003: Make the web-animations engine use the passed in blink::WebFrameTime values. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Patch to run on try bots. Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/svg/graphics/SVGImageChromeClient.cpp
diff --git a/Source/core/svg/graphics/SVGImageChromeClient.cpp b/Source/core/svg/graphics/SVGImageChromeClient.cpp
index 19134d053f1876641ea99e15e25eeddc71010367..2d396df79f8459e0b295d4236d501e6340d3453a 100644
--- a/Source/core/svg/graphics/SVGImageChromeClient.cpp
+++ b/Source/core/svg/graphics/SVGImageChromeClient.cpp
@@ -86,7 +86,8 @@ void SVGImageChromeClient::animationTimerFired(Timer<SVGImageChromeClient>*)
// serviceScriptedAnimations runs requestAnimationFrame callbacks, but SVG
// images can't have any so we assert there's no script.
ScriptForbiddenScope forbidScript;
- m_image->frameView()->page()->animator().serviceScriptedAnimations(monotonicallyIncreasingTime());
+ double now = monotonicallyIncreasingTime();
+ m_image->frameView()->page()->animator().serviceScriptedAnimations(blink::WebFrameTime(-1, -1, now, now + animationFrameDelay);
m_image->frameView()->updateLayoutAndStyleForPainting();
}

Powered by Google App Engine
This is Rietveld 408576698