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

Unified Diff: third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoder.cpp

Issue 2878363003: Revert of Fix ImageAnimation constant names after Blink renaming (Closed)
Patch Set: Created 3 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/platform/image-decoders/gif/GIFImageDecoder.cpp
diff --git a/third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoder.cpp b/third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoder.cpp
index 845fba9a1125e06dd09914674c8083d731bde1fe..5ee289a40e3ca26c6604984daf57cd59664b3c46 100644
--- a/third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoder.cpp
+++ b/third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoder.cpp
@@ -36,7 +36,7 @@
const ColorBehavior& color_behavior,
size_t max_decoded_bytes)
: ImageDecoder(alpha_option, color_behavior, max_decoded_bytes),
- repetition_count_(kAnimationLoopOnce) {}
+ repetition_count_(kCAnimationLoopOnce) {}
GIFImageDecoder::~GIFImageDecoder() {}
@@ -71,9 +71,9 @@
// later in the stream. It is also possible that no frames are in the
// stream. In these cases we should just loop once.
if (IsAllDataReceived() && ParseCompleted() && reader_->imagesCount() == 1)
- repetition_count_ = kAnimationNone;
+ repetition_count_ = kCAnimationNone;
else if (Failed() || (reader_ && (!reader_->imagesCount())))
- repetition_count_ = kAnimationLoopOnce;
+ repetition_count_ = kCAnimationLoopOnce;
else if (reader_ && reader_->loopCount() != cLoopCountNotSeen)
repetition_count_ = reader_->loopCount();
return repetition_count_;

Powered by Google App Engine
This is Rietveld 408576698