Use NativeImageQt::defaultFormatForAlphaEnabledImages() and NativeImageQt::defaultFormatForOpaqueImages() instead of the direct imagetypes at the appropriate places.
Created attachment 152960 [details] Patch
Comment on attachment 152960 [details] Patch LGTM.
Comment on attachment 152960 [details] Patch Clearing flags on attachment: 152960 Committed r122953: <http://trac.webkit.org/changeset/122953>
All reviewed patches have been landed. Closing bug.