Index: Source/WebCore/platform/image-decoders/ImageDecoder.cpp |
diff --git a/Source/WebCore/platform/image-decoders/ImageDecoder.cpp b/Source/WebCore/platform/image-decoders/ImageDecoder.cpp |
index b0d5fd0e14c32fe3c1c4a626a128af03c5743a8f..c7e822389af7439c552e5aecbf913a9cdbc06e2f 100644 |
--- a/Source/WebCore/platform/image-decoders/ImageDecoder.cpp |
+++ b/Source/WebCore/platform/image-decoders/ImageDecoder.cpp |
@@ -25,12 +25,7 @@ |
#include "BMPImageDecoder.h" |
#include "GIFImageDecoder.h" |
#include "ICOImageDecoder.h" |
-#if PLATFORM(QT) |
-#include "ImageDecoderQt.h" |
-#endif |
-#if !PLATFORM(QT) || USE(LIBJPEG) |
#include "JPEGImageDecoder.h" |
-#endif |
#include "PNGImageDecoder.h" |
#include "PlatformMemoryInstrumentation.h" |
#include "SharedBuffer.h" |
@@ -113,18 +108,14 @@ PassOwnPtr<ImageDecoder> ImageDecoder::create(const SharedBuffer& data, ImageSou |
if (matchesGIFSignature(contents)) |
return adoptPtr(new GIFImageDecoder(alphaOption, gammaAndColorProfileOption)); |
-#if !PLATFORM(QT) || (PLATFORM(QT) && USE(LIBPNG)) |
if (matchesPNGSignature(contents)) |
return adoptPtr(new PNGImageDecoder(alphaOption, gammaAndColorProfileOption)); |
if (matchesICOSignature(contents) || matchesCURSignature(contents)) |
return adoptPtr(new ICOImageDecoder(alphaOption, gammaAndColorProfileOption)); |
-#endif |
-#if !PLATFORM(QT) || (PLATFORM(QT) && USE(LIBJPEG)) |
if (matchesJPEGSignature(contents)) |
return adoptPtr(new JPEGImageDecoder(alphaOption, gammaAndColorProfileOption)); |
-#endif |
#if USE(WEBP) |
if (matchesWebPSignature(contents)) |
@@ -134,9 +125,6 @@ PassOwnPtr<ImageDecoder> ImageDecoder::create(const SharedBuffer& data, ImageSou |
if (matchesBMPSignature(contents)) |
return adoptPtr(new BMPImageDecoder(alphaOption, gammaAndColorProfileOption)); |
-#if PLATFORM(QT) |
- return adoptPtr(new ImageDecoderQt(alphaOption, gammaAndColorProfileOption)); |
-#endif |
return nullptr; |
} |