Changeset 249938 in webkit


Ignore:
Timestamp:
Sep 16, 2019 8:05:13 PM (5 years ago)
Author:
Fujii Hironori
Message:

[AppleWin] Assertion failure in defaultSupportedImageTypes in UTIRegistry.cpp
https://bugs.webkit.org/show_bug.cgi?id=198286

Reviewed by Brent Fulgham.

Some image types aren't supported by CG for Windows.

No new tests, covered by existing tests.

  • platform/graphics/cg/ImageSourceCGWin.cpp:

(WebCore::MIMETypeForImageType): Return the correct MIME types for
com.microsoft.cur and com.microsoft.ico.

  • platform/graphics/cg/UTIRegistry.cpp:

(WebCore::defaultSupportedImageTypes): Excluded public.jpeg-2000 and public.mpo-image if PLATFORM(WIN).

Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r249937 r249938  
     12019-09-16  Fujii Hironori  <Hironori.Fujii@sony.com>
     2
     3        [AppleWin] Assertion failure in defaultSupportedImageTypes in UTIRegistry.cpp
     4        https://bugs.webkit.org/show_bug.cgi?id=198286
     5
     6        Reviewed by Brent Fulgham.
     7
     8        Some image types aren't supported by CG for Windows.
     9
     10        No new tests, covered by existing tests.
     11
     12        * platform/graphics/cg/ImageSourceCGWin.cpp:
     13        (WebCore::MIMETypeForImageType): Return the correct MIME types for
     14        com.microsoft.cur and com.microsoft.ico.
     15        * platform/graphics/cg/UTIRegistry.cpp:
     16        (WebCore::defaultSupportedImageTypes): Excluded public.jpeg-2000 and public.mpo-image if PLATFORM(WIN).
     17
    1182019-09-16  Fujii Hironori  <Hironori.Fujii@sony.com>
    219
  • trunk/Source/WebCore/platform/graphics/cg/ImageSourceCGWin.cpp

    r238015 r249938  
    4040    // png, tiff, gif but won't work for UTIs like: public.jpeg-2000,
    4141    // public.xbitmap-image, com.apple.quicktime-image, and others.
    42     if (int dotLocation = type.reverseFind('.'))
     42    if (type == "com.microsoft.cur" || type == "com.microsoft.ico")
     43        mimeType = "image/vnd.microsoft.icon"_s;
     44    else if (int dotLocation = type.reverseFind('.'))
    4345        mimeType = "image/" + type.substring(dotLocation + 1);
    4446    return mimeType;
  • trunk/Source/WebCore/platform/graphics/cg/UTIRegistry.cpp

    r245280 r249938  
    5151        "com.microsoft.ico",
    5252        "public.jpeg",
     53        "public.png",
     54        "public.tiff",
     55#if !PLATFORM(WIN)
    5356        "public.jpeg-2000",
    5457        "public.mpo-image",
    55         "public.png",
    56         "public.tiff",
     58#endif
    5759    };
    5860
Note: See TracChangeset for help on using the changeset viewer.