OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006 Apple Computer, Inc. | 2 * Copyright (C) 2006 Apple Computer, Inc. |
3 * | 3 * |
4 * Portions are Copyright (C) 2001-6 mozilla.org | 4 * Portions are Copyright (C) 2001-6 mozilla.org |
5 * | 5 * |
6 * Other contributors: | 6 * Other contributors: |
7 * Stuart Parmenter <stuart@mozilla.com> | 7 * Stuart Parmenter <stuart@mozilla.com> |
8 * | 8 * |
9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
10 * modify it under the terms of the GNU Lesser General Public | 10 * modify it under the terms of the GNU Lesser General Public |
(...skipping 1058 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1069 // If we couldn't decode the image but have received all the data, decoding | 1069 // If we couldn't decode the image but have received all the data, decoding |
1070 // has failed. | 1070 // has failed. |
1071 if (!m_reader->decode(onlySize) && isAllDataReceived()) | 1071 if (!m_reader->decode(onlySize) && isAllDataReceived()) |
1072 setFailed(); | 1072 setFailed(); |
1073 | 1073 |
1074 // If decoding is done or failed, we don't need the JPEGImageReader anymore. | 1074 // If decoding is done or failed, we don't need the JPEGImageReader anymore. |
1075 if (isComplete(this, onlySize) || failed()) | 1075 if (isComplete(this, onlySize) || failed()) |
1076 m_reader.clear(); | 1076 m_reader.clear(); |
1077 } | 1077 } |
1078 | 1078 |
1079 } | 1079 } // namespace blink |
OLD | NEW |