Changeset 87090 in webkit
- Timestamp:
- May 23, 2011 12:47:53 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r87083 r87090 1 2011-05-23 Adam Barth <abarth@webkit.org> 2 3 Reviewed by Eric Seidel. 4 5 Update ImageDecoder::create to match sniffing spec 6 https://bugs.webkit.org/show_bug.cgi?id=47683 7 8 This test actually passes before this patch anyway. I don't think this 9 patch is actually observable in any meaningful way. 10 11 * fast/images/busted-oval-does-not-render-expected.txt: Added. 12 * fast/images/busted-oval-does-not-render.html: Added. 13 * fast/images/resources/busted-oval.png: Added. 14 1 15 2011-05-23 Abhishek Arya <inferno@chromium.org> 2 16 -
trunk/Source/WebCore/ChangeLog
r87089 r87090 1 2011-05-23 Adam Barth <abarth@webkit.org> 2 3 Reviewed by Eric Seidel. 4 5 Update ImageDecoder::create to match sniffing spec 6 https://bugs.webkit.org/show_bug.cgi?id=47683 7 8 This change is difficult to test. We're making this change to comply 9 with standards even if the change is difficult to observe. (This patch 10 also causes us to match Firefox.) 11 12 Test: fast/images/busted-oval-does-not-render.html 13 14 * platform/image-decoders/ImageDecoder.cpp: 15 1 16 2011-05-23 Ruben <chromium@hybridsource.org> 2 17 -
trunk/Source/WebCore/platform/image-decoders/ImageDecoder.cpp
r84101 r87090 58 58 bool matchesGIFSignature(char* contents) 59 59 { 60 return !memcmp(contents, "GIF8 ", 4);60 return !memcmp(contents, "GIF87a", 6) || !memcmp(contents, "GIF89a", 6); 61 61 } 62 62 63 63 bool matchesPNGSignature(char* contents) 64 64 { 65 return !memcmp(contents, "\x89\x50\x4E\x47 ", 4);65 return !memcmp(contents, "\x89\x50\x4E\x47\x0D\x0A\x1A\x0A", 8); 66 66 } 67 67
Note: See TracChangeset
for help on using the changeset viewer.