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

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

Issue 204673004: Use monotonic time for SVGImage's serviceScriptedAnimations() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Added TC. Created 6 years, 9 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 | « LayoutTests/svg/as-image/animated-svg-wrong-timesource-expected.html ('k') | no next file » | 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 ccf890af55a3d17127ec4ecf2a96d5d744adf36e..4df8c476553e8e897aca20e3fb0b366a3f288db1 100644
--- a/Source/core/svg/graphics/SVGImageChromeClient.cpp
+++ b/Source/core/svg/graphics/SVGImageChromeClient.cpp
@@ -83,7 +83,7 @@ void SVGImageChromeClient::animationTimerFired(Timer<SVGImageChromeClient>*)
// In principle, we should call requestAnimationFrame callbacks here, but
// we know there aren't any because script is forbidden inside SVGImages.
if (m_image) {
- m_image->frameView()->page()->animator().serviceScriptedAnimations(currentTime());
+ m_image->frameView()->page()->animator().serviceScriptedAnimations(monotonicallyIncreasingTime());
m_image->frameView()->updateLayoutAndStyleForPainting();
}
}
« no previous file with comments | « LayoutTests/svg/as-image/animated-svg-wrong-timesource-expected.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698