Changeset 87090 in webkit


Ignore:
Timestamp:
May 23, 2011 12:47:53 PM (13 years ago)
Author:
abarth@webkit.org
Message:

2011-05-23 Adam Barth <abarth@webkit.org>

Reviewed by Eric Seidel.

Update ImageDecoder::create to match sniffing spec
https://bugs.webkit.org/show_bug.cgi?id=47683

This test actually passes before this patch anyway. I don't think this
patch is actually observable in any meaningful way.

  • fast/images/busted-oval-does-not-render-expected.txt: Added.
  • fast/images/busted-oval-does-not-render.html: Added.
  • fast/images/resources/busted-oval.png: Added.

2011-05-23 Adam Barth <abarth@webkit.org>

Reviewed by Eric Seidel.

Update ImageDecoder::create to match sniffing spec
https://bugs.webkit.org/show_bug.cgi?id=47683

This change is difficult to test. We're making this change to comply
with standards even if the change is difficult to observe. (This patch
also causes us to match Firefox.)

Test: fast/images/busted-oval-does-not-render.html

  • platform/image-decoders/ImageDecoder.cpp:
Location:
trunk
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r87083 r87090  
     12011-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
    1152011-05-23  Abhishek Arya  <inferno@chromium.org>
    216
  • trunk/Source/WebCore/ChangeLog

    r87089 r87090  
     12011-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
    1162011-05-23  Ruben  <chromium@hybridsource.org>
    217
  • trunk/Source/WebCore/platform/image-decoders/ImageDecoder.cpp

    r84101 r87090  
    5858bool matchesGIFSignature(char* contents)
    5959{
    60     return !memcmp(contents, "GIF8", 4);
     60    return !memcmp(contents, "GIF87a", 6) || !memcmp(contents, "GIF89a", 6);
    6161}
    6262
    6363bool matchesPNGSignature(char* contents)
    6464{
    65     return !memcmp(contents, "\x89\x50\x4E\x47", 4);
     65    return !memcmp(contents, "\x89\x50\x4E\x47\x0D\x0A\x1A\x0A", 8);
    6666}
    6767
Note: See TracChangeset for help on using the changeset viewer.