diff options
Diffstat (limited to 'Source/WebCore/platform/text/TextEncodingRegistry.cpp')
-rw-r--r-- | Source/WebCore/platform/text/TextEncodingRegistry.cpp | 28 |
1 files changed, 11 insertions, 17 deletions
diff --git a/Source/WebCore/platform/text/TextEncodingRegistry.cpp b/Source/WebCore/platform/text/TextEncodingRegistry.cpp index 1dc09ee..f604227 100644 --- a/Source/WebCore/platform/text/TextEncodingRegistry.cpp +++ b/Source/WebCore/platform/text/TextEncodingRegistry.cpp @@ -58,6 +58,9 @@ #include "TextCodecWinCE.h" #endif +#include <wtf/CurrentTime.h> +#include <wtf/text/CString.h> + using namespace WTF; namespace WebCore { @@ -220,31 +223,22 @@ static void buildBaseTextCodecMaps() TextCodecLatin1::registerEncodingNames(addToTextEncodingNameMap); TextCodecLatin1::registerCodecs(addToTextCodecMap); +#if USE(BUILTIN_UTF8_CODEC) + TextCodecUTF8::registerEncodingNames(addToTextEncodingNameMap); + TextCodecUTF8::registerCodecs(addToTextCodecMap); +#endif + TextCodecUTF16::registerEncodingNames(addToTextEncodingNameMap); TextCodecUTF16::registerCodecs(addToTextCodecMap); TextCodecUserDefined::registerEncodingNames(addToTextEncodingNameMap); TextCodecUserDefined::registerCodecs(addToTextCodecMap); -#if USE(ICU_UNICODE) - TextCodecICU::registerBaseEncodingNames(addToTextEncodingNameMap); - TextCodecICU::registerBaseCodecs(addToTextCodecMap); -#endif - #if USE(GLIB_UNICODE) + // FIXME: This is not needed. The code above covers all the base codecs. TextCodecGtk::registerBaseEncodingNames(addToTextEncodingNameMap); TextCodecGtk::registerBaseCodecs(addToTextCodecMap); #endif - -#if USE(BREWMP_UNICODE) - TextCodecBrew::registerBaseEncodingNames(addToTextEncodingNameMap); - TextCodecBrew::registerBaseCodecs(addToTextCodecMap); -#endif - -#if OS(WINCE) && !PLATFORM(QT) - TextCodecWinCE::registerBaseEncodingNames(addToTextEncodingNameMap); - TextCodecWinCE::registerBaseCodecs(addToTextCodecMap); -#endif } static void addEncodingName(HashSet<const char*>* set, const char* name) @@ -303,8 +297,8 @@ bool shouldShowBackslashAsCurrencySymbolIn(const char* canonicalEncodingName) static void extendTextCodecMaps() { #if USE(ICU_UNICODE) - TextCodecICU::registerExtendedEncodingNames(addToTextEncodingNameMap); - TextCodecICU::registerExtendedCodecs(addToTextCodecMap); + TextCodecICU::registerEncodingNames(addToTextEncodingNameMap); + TextCodecICU::registerCodecs(addToTextCodecMap); #endif #if USE(QT4_UNICODE) |