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

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: Fixing the tests under the release build. Created 6 years, 5 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 c130ea80f099d898a966b8f721457c90745bc919..fdb5a84790ff91c9f52de99805642690cd809dec 100644
--- a/Source/core/svg/graphics/SVGImageChromeClient.cpp
+++ b/Source/core/svg/graphics/SVGImageChromeClient.cpp
@@ -86,7 +86,9 @@ 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