Changeset 249938 in webkit
- Timestamp:
- Sep 16, 2019 8:05:13 PM (5 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r249937 r249938 1 2019-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 1 18 2019-09-16 Fujii Hironori <Hironori.Fujii@sony.com> 2 19 -
trunk/Source/WebCore/platform/graphics/cg/ImageSourceCGWin.cpp
r238015 r249938 40 40 // png, tiff, gif but won't work for UTIs like: public.jpeg-2000, 41 41 // 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('.')) 43 45 mimeType = "image/" + type.substring(dotLocation + 1); 44 46 return mimeType; -
trunk/Source/WebCore/platform/graphics/cg/UTIRegistry.cpp
r245280 r249938 51 51 "com.microsoft.ico", 52 52 "public.jpeg", 53 "public.png", 54 "public.tiff", 55 #if !PLATFORM(WIN) 53 56 "public.jpeg-2000", 54 57 "public.mpo-image", 55 "public.png", 56 "public.tiff", 58 #endif 57 59 }; 58 60
Note: See TracChangeset
for help on using the changeset viewer.