Changeset 52483 in webkit
- Timestamp:
- Dec 21, 2009 10:57:16 PM (14 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r52479 r52483 1 2009-12-21 Kwang Yul Seo <skyul@company100.net> 2 3 Reviewed by Eric Seidel. 4 5 Use ASSERT instead of assert in image-decoders 6 https://bugs.webkit.org/show_bug.cgi?id=32852 7 8 Other decoders use WTF's ASSERT macro. 9 Follow this convention. 10 11 * platform/image-decoders/jpeg/JPEGImageDecoder.cpp: 12 (WebCore::JPEGImageReader::decode): 13 * platform/image-decoders/png/PNGImageDecoder.cpp: 14 (WebCore::PNGImageDecoder::headerAvailable): 15 1 16 2009-12-21 Kwang Yul Seo <skyul@company100.net> 2 17 -
trunk/WebCore/platform/image-decoders/jpeg/JPEGImageDecoder.cpp
r47876 r52483 40 40 #include "config.h" 41 41 #include "JPEGImageDecoder.h" 42 #include <assert.h>43 42 #include <stdio.h> // Needed by jpeglib.h for FILE. 44 43 … … 272 271 273 272 /* If we've completed image output ... */ 274 assert(m_info.output_scanline == m_info.output_height);273 ASSERT(m_info.output_scanline == m_info.output_height); 275 274 m_state = JPEG_DONE; 276 275 } -
trunk/WebCore/platform/image-decoders/png/PNGImageDecoder.cpp
r47381 r52483 40 40 #include "PNGImageDecoder.h" 41 41 #include "png.h" 42 #include "assert.h"43 42 44 43 namespace WebCore { … … 293 292 png_read_update_info(png, info); 294 293 channels = png_get_channels(png, info); 295 assert(channels == 3 || channels == 4);294 ASSERT(channels == 3 || channels == 4); 296 295 297 296 reader()->setHasAlpha(channels == 4);
Note: See TracChangeset
for help on using the changeset viewer.