| OLD | NEW |
| 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 666 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 677 | 677 |
| 678 int netscapeExtension = currentComponent[0] & 7; | 678 int netscapeExtension = currentComponent[0] & 7; |
| 679 | 679 |
| 680 // Loop entire animation specified # of times. Only read the loop count | 680 // Loop entire animation specified # of times. Only read the loop count |
| 681 // during the first iteration. | 681 // during the first iteration. |
| 682 if (netscapeExtension == 1) { | 682 if (netscapeExtension == 1) { |
| 683 m_loopCount = GETINT16(currentComponent + 1); | 683 m_loopCount = GETINT16(currentComponent + 1); |
| 684 | 684 |
| 685 // Zero loop count is infinite animation loop request. | 685 // Zero loop count is infinite animation loop request. |
| 686 if (!m_loopCount) | 686 if (!m_loopCount) |
| 687 m_loopCount = blink::kAnimationLoopInfinite; | 687 m_loopCount = blink::kCAnimationLoopInfinite; |
| 688 | 688 |
| 689 GETN(1, GIFNetscapeExtensionBlock); | 689 GETN(1, GIFNetscapeExtensionBlock); |
| 690 } else if (netscapeExtension == 2) { | 690 } else if (netscapeExtension == 2) { |
| 691 // Wait for specified # of bytes to enter buffer. | 691 // Wait for specified # of bytes to enter buffer. |
| 692 | 692 |
| 693 // Don't do this, this extension doesn't exist (isn't used at all) | 693 // Don't do this, this extension doesn't exist (isn't used at all) |
| 694 // and doesn't do anything, as our streaming/buffering takes care of | 694 // and doesn't do anything, as our streaming/buffering takes care of |
| 695 // it all. See http://semmix.pl/color/exgraf/eeg24.htm . | 695 // it all. See http://semmix.pl/color/exgraf/eeg24.htm . |
| 696 GETN(1, GIFNetscapeExtensionBlock); | 696 GETN(1, GIFNetscapeExtensionBlock); |
| 697 } else { | 697 } else { |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 881 rowIter = rowBuffer.begin(); | 881 rowIter = rowBuffer.begin(); |
| 882 rowsRemaining = m_frameContext->height(); | 882 rowsRemaining = m_frameContext->height(); |
| 883 | 883 |
| 884 // Clearing the whole suffix table lets us be more tolerant of bad data. | 884 // Clearing the whole suffix table lets us be more tolerant of bad data. |
| 885 for (int i = 0; i < clearCode; ++i) { | 885 for (int i = 0; i < clearCode; ++i) { |
| 886 suffix[i] = i; | 886 suffix[i] = i; |
| 887 suffixLength[i] = 1; | 887 suffixLength[i] = 1; |
| 888 } | 888 } |
| 889 return true; | 889 return true; |
| 890 } | 890 } |
| OLD | NEW |