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

Unified Diff: third_party/WebKit/Source/platform/graphics/BitmapImage.cpp

Issue 2259083003: Remove redundant bitmap animation loop check: m_repetitionsComplete (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/graphics/BitmapImage.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/BitmapImage.cpp b/third_party/WebKit/Source/platform/graphics/BitmapImage.cpp
index 6bd22c923ea3ab9b77ed1e4398427c6af54cfd5c..ee7be35fabdebe16b7cf658e7770e2a03d23f6cb 100644
--- a/third_party/WebKit/Source/platform/graphics/BitmapImage.cpp
+++ b/third_party/WebKit/Source/platform/graphics/BitmapImage.cpp
@@ -606,7 +606,7 @@ bool BitmapImage::internalAdvanceAnimation(bool skippingFrames)
// Note that we don't need to special-case cAnimationLoopOnce here
// because it is 0 (see comments on its declaration in ImageAnimation.h).
if ((repetitionCount(true) != cAnimationLoopInfinite && m_repetitionsComplete > m_repetitionCount)
- || (m_animationPolicy == ImageAnimationPolicyAnimateOnce && m_repetitionsComplete > 0)) {
+ || m_animationPolicy == ImageAnimationPolicyAnimateOnce) {
m_animationFinished = true;
m_desiredFrameStartTime = 0;
--m_currentFrame;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698