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

Unified Diff: third_party/WebKit/Source/core/svg/graphics/SVGImage.cpp

Issue 1925533003: High CPU and increased memory usage fix for high-res (GIF, WEBP...) animations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing. DCHECK. Thanks fmalita@. Created 4 years, 7 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: third_party/WebKit/Source/core/svg/graphics/SVGImage.cpp
diff --git a/third_party/WebKit/Source/core/svg/graphics/SVGImage.cpp b/third_party/WebKit/Source/core/svg/graphics/SVGImage.cpp
index 525ee8c9a0279b03e1184b6255214832ca2158ff..28a3b54094c5904559a0f948fec8beae6e543dcc 100644
--- a/third_party/WebKit/Source/core/svg/graphics/SVGImage.cpp
+++ b/third_party/WebKit/Source/core/svg/graphics/SVGImage.cpp
@@ -406,14 +406,6 @@ void SVGImage::startAnimation(CatchUpAnimation)
rootElement->unpauseAnimations();
}
-void SVGImage::stopAnimation()
-{
- SVGSVGElement* rootElement = svgRootElement(m_page.get());
- if (!rootElement)
- return;
- rootElement->pauseAnimations();
-}
-
void SVGImage::resetAnimation()
{
SVGSVGElement* rootElement = svgRootElement(m_page.get());

Powered by Google App Engine
This is Rietveld 408576698