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

Side by Side Diff: third_party/WebKit/Source/platform/image-decoders/gif/GIFImageReader.cpp

Issue 2884803002: Reland of Fix ImageAnimation constant names after Blink renaming (Closed)
Patch Set: Fixing accidental upstream 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 unified diff | Download patch
OLDNEW
1 /* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 1 /* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* ***** BEGIN LICENSE BLOCK ***** 2 /* ***** BEGIN LICENSE BLOCK *****
3 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 3 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
4 * 4 *
5 * The contents of this file are subject to the Mozilla Public License Version 5 * The contents of this file are subject to the Mozilla Public License Version
6 * 1.1 (the "License"); you may not use this file except in compliance with 6 * 1.1 (the "License"); you may not use this file except in compliance with
7 * the License. You may obtain a copy of the License at 7 * the License. You may obtain a copy of the License at
8 * http://www.mozilla.org/MPL/ 8 * http://www.mozilla.org/MPL/
9 * 9 *
10 * Software distributed under the License is distributed on an "AS IS" basis, 10 * Software distributed under the License is distributed on an "AS IS" basis,
(...skipping 665 matching lines...) Expand 10 before | Expand all | Expand 10 after
676 676
677 int netscapeExtension = currentComponent[0] & 7; 677 int netscapeExtension = currentComponent[0] & 7;
678 678
679 // Loop entire animation specified # of times. Only read the loop count 679 // Loop entire animation specified # of times. Only read the loop count
680 // during the first iteration. 680 // during the first iteration.
681 if (netscapeExtension == 1) { 681 if (netscapeExtension == 1) {
682 m_loopCount = GETINT16(currentComponent + 1); 682 m_loopCount = GETINT16(currentComponent + 1);
683 683
684 // Zero loop count is infinite animation loop request. 684 // Zero loop count is infinite animation loop request.
685 if (!m_loopCount) 685 if (!m_loopCount)
686 m_loopCount = blink::kCAnimationLoopInfinite; 686 m_loopCount = blink::kAnimationLoopInfinite;
687 687
688 GETN(1, GIFNetscapeExtensionBlock); 688 GETN(1, GIFNetscapeExtensionBlock);
689 } else if (netscapeExtension == 2) { 689 } else if (netscapeExtension == 2) {
690 // Wait for specified # of bytes to enter buffer. 690 // Wait for specified # of bytes to enter buffer.
691 691
692 // Don't do this, this extension doesn't exist (isn't used at all) 692 // Don't do this, this extension doesn't exist (isn't used at all)
693 // and doesn't do anything, as our streaming/buffering takes care of 693 // and doesn't do anything, as our streaming/buffering takes care of
694 // it all. See http://semmix.pl/color/exgraf/eeg24.htm . 694 // it all. See http://semmix.pl/color/exgraf/eeg24.htm .
695 GETN(1, GIFNetscapeExtensionBlock); 695 GETN(1, GIFNetscapeExtensionBlock);
696 } else { 696 } else {
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
880 rowIter = rowBuffer.begin(); 880 rowIter = rowBuffer.begin();
881 rowsRemaining = m_frameContext->height(); 881 rowsRemaining = m_frameContext->height();
882 882
883 // Clearing the whole suffix table lets us be more tolerant of bad data. 883 // Clearing the whole suffix table lets us be more tolerant of bad data.
884 for (int i = 0; i < clearCode; ++i) { 884 for (int i = 0; i < clearCode; ++i) {
885 suffix[i] = i; 885 suffix[i] = i;
886 suffixLength[i] = 1; 886 suffixLength[i] = 1;
887 } 887 }
888 return true; 888 return true;
889 } 889 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698