RESOLVED FIXED111185
[Qt] Use Qt5.1 supportedMimeTypes methods.
https://bugs.webkit.org/show_bug.cgi?id=111185
Summary [Qt] Use Qt5.1 supportedMimeTypes methods.
Allan Sandfeld Jensen
Reported 2013-03-01 08:44:07 PST
QImageReader and QImageWriter now includes methods that returns the supported mimetypes directly, so we don't have to guess them from the format keys. This should not a make any difference to the official imageformat plugins, but is cleaner and likely to fix 3rd party plugins.
Attachments
Patch (3.37 KB, patch)
2013-03-01 08:46 PST, Allan Sandfeld Jensen
no flags
Patch (3.36 KB, patch)
2013-03-01 09:46 PST, Allan Sandfeld Jensen
no flags
Patch (3.42 KB, patch)
2013-03-07 05:30 PST, Allan Sandfeld Jensen
jturcotte: review+
Allan Sandfeld Jensen
Comment 1 2013-03-01 08:46:09 PST
Early Warning System Bot
Comment 2 2013-03-01 08:57:37 PST
Early Warning System Bot
Comment 3 2013-03-01 09:00:41 PST
Allan Sandfeld Jensen
Comment 4 2013-03-01 09:17:11 PST
Comment on attachment 190971 [details] Patch C&P error
Allan Sandfeld Jensen
Comment 5 2013-03-01 09:46:36 PST
Jocelyn Turcotte
Comment 6 2013-03-06 05:40:58 PST
Comment on attachment 190979 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=190979&action=review We should remove the old code as soon as 5.1 has been released, those ifdef are getting heavy. > Source/WebCore/platform/MIMETypeRegistry.cpp:248 > +#if QT_VERSION >= 0x050100 #if QT_VERSION >= QT_VERSION_CHECK(5, 1, 0) > Source/WebCore/platform/MIMETypeRegistry.cpp:265 > + // Don't treat SVG as images directly if we can handle them internally. "internally" is ambiguous, adding something like "let WebKit handle them" could help. > Source/WebCore/platform/MIMETypeRegistry.cpp:295 > +#if QT_VERSION >= 0x050100 ditto > Source/WebCore/platform/MIMETypeRegistry.cpp:307 > +#endif This could deserve a "// QT_VERSION" as well
Allan Sandfeld Jensen
Comment 7 2013-03-07 05:30:28 PST
Allan Sandfeld Jensen
Comment 8 2013-03-07 05:54:42 PST
Note You need to log in before you can comment on or make changes to this bug.