From 1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353 Mon Sep 17 00:00:00 2001 From: The Android Open Source Project Date: Wed, 17 Dec 2008 18:05:15 -0800 Subject: Code drop from //branches/cupcake/...@124589 --- WebCore/platform/qt/MIMETypeRegistryQt.cpp | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'WebCore/platform/qt/MIMETypeRegistryQt.cpp') diff --git a/WebCore/platform/qt/MIMETypeRegistryQt.cpp b/WebCore/platform/qt/MIMETypeRegistryQt.cpp index 6b3e243..9f4a786 100644 --- a/WebCore/platform/qt/MIMETypeRegistryQt.cpp +++ b/WebCore/platform/qt/MIMETypeRegistryQt.cpp @@ -1,7 +1,7 @@ /* * Copyright (C) 2006 Zack Rusin * Copyright (C) 2006 Apple Computer, Inc. All rights reserved. - * Copyright (C) 2007 Trolltech ASA + * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -28,11 +28,6 @@ #include "config.h" #include "MIMETypeRegistry.h" -#include "NotImplemented.h" -#if QT_VERSION < 0x040400 -#include "qwebobjectplugin_p.h" -#endif - namespace WebCore { struct ExtensionMap { @@ -42,6 +37,7 @@ struct ExtensionMap { static const ExtensionMap extensionMap [] = { { "bmp", "image/bmp" }, + { "css", "text/css" }, { "gif", "image/gif" }, { "html", "text/html" }, { "htm", "text/html" }, @@ -79,12 +75,6 @@ String MIMETypeRegistry::getMIMETypeForExtension(const String &ext) return e->mimeType; ++e; } - // ### FIXME: Qt 4.4 -#if QT_VERSION < 0x040400 - QString type = QWebFactoryLoader::self()->mimeTypeForExtension(ext); - if (!type.isEmpty()) - return type; -#endif return "application/octet-stream"; } -- cgit v1.1