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

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 remaining usages of -1 in the code. 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
« no previous file with comments | « Source/core/svg/SVGDocumentExtensions.cpp ('k') | Source/web/PageWidgetDelegate.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..4eb94118137e23c16fab3555709acb30ff18822f 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(blink::WebFrameTime::Undefined, blink::WebFrameTime::Undefined, now, now + animationFrameDelay));
m_image->frameView()->updateLayoutAndStyleForPainting();
}
« no previous file with comments | « Source/core/svg/SVGDocumentExtensions.cpp ('k') | Source/web/PageWidgetDelegate.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698