WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
111185
[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
Details
Formatted Diff
Diff
Patch
(3.36 KB, patch)
2013-03-01 09:46 PST
,
Allan Sandfeld Jensen
no flags
Details
Formatted Diff
Diff
Patch
(3.42 KB, patch)
2013-03-07 05:30 PST
,
Allan Sandfeld Jensen
jturcotte
: review+
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Allan Sandfeld Jensen
Comment 1
2013-03-01 08:46:09 PST
Created
attachment 190971
[details]
Patch
Early Warning System Bot
Comment 2
2013-03-01 08:57:37 PST
Comment on
attachment 190971
[details]
Patch
Attachment 190971
[details]
did not pass qt-ews (qt): Output:
http://webkit-commit-queue.appspot.com/results/16836263
Early Warning System Bot
Comment 3
2013-03-01 09:00:41 PST
Comment on
attachment 190971
[details]
Patch
Attachment 190971
[details]
did not pass qt-wk2-ews (qt): Output:
http://webkit-commit-queue.appspot.com/results/16867009
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
Created
attachment 190979
[details]
Patch
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
Created
attachment 191978
[details]
Patch
Allan Sandfeld Jensen
Comment 8
2013-03-07 05:54:42 PST
Committed
r145066
: <
http://trac.webkit.org/changeset/145066
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug