summaryrefslogtreecommitdiffstats
path: root/WebCore/platform/text/TextEncodingRegistry.cpp
diff options
context:
space:
mode:
authorBen Murdoch <benm@google.com>2009-08-11 17:01:47 +0100
committerBen Murdoch <benm@google.com>2009-08-11 18:21:02 +0100
commit0bf48ef3be53ddaa52bbead65dfd75bf90e7a2b5 (patch)
tree2943df35f62d885c89d01063cc528dd73b480fea /WebCore/platform/text/TextEncodingRegistry.cpp
parent7e7a70bfa49a1122b2597a1e6367d89eb4035eca (diff)
downloadexternal_webkit-0bf48ef3be53ddaa52bbead65dfd75bf90e7a2b5.zip
external_webkit-0bf48ef3be53ddaa52bbead65dfd75bf90e7a2b5.tar.gz
external_webkit-0bf48ef3be53ddaa52bbead65dfd75bf90e7a2b5.tar.bz2
Merge in WebKit r47029.
Diffstat (limited to 'WebCore/platform/text/TextEncodingRegistry.cpp')
-rw-r--r--WebCore/platform/text/TextEncodingRegistry.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/WebCore/platform/text/TextEncodingRegistry.cpp b/WebCore/platform/text/TextEncodingRegistry.cpp
index 3c9d65f..5ab1c87 100644
--- a/WebCore/platform/text/TextEncodingRegistry.cpp
+++ b/WebCore/platform/text/TextEncodingRegistry.cpp
@@ -1,5 +1,6 @@
/*
* Copyright (C) 2006, 2007 Apple Inc. All rights reserved.
+ * Copyright (C) 2007-2009 Torch Mobile, Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -47,6 +48,9 @@
#if PLATFORM(QT)
#include "qt/TextCodecQt.h"
#endif
+#if PLATFORM(WINCE)
+#include "TextCodecWince.h"
+#endif
using namespace WTF;
@@ -189,6 +193,11 @@ static void buildBaseTextCodecMaps()
TextCodecICU::registerBaseEncodingNames(addToTextEncodingNameMap);
TextCodecICU::registerBaseCodecs(addToTextCodecMap);
#endif
+
+#if PLATFORM(WINCE)
+ TextCodecWince::registerBaseEncodingNames(addToTextEncodingNameMap);
+ TextCodecWince::registerBaseCodecs(addToTextCodecMap);
+#endif
}
static void extendTextCodecMaps()
@@ -207,6 +216,11 @@ static void extendTextCodecMaps()
TextCodecMac::registerEncodingNames(addToTextEncodingNameMap);
TextCodecMac::registerCodecs(addToTextCodecMap);
#endif
+
+#if PLATFORM(WINCE)
+ TextCodecWince::registerExtendedEncodingNames(addToTextEncodingNameMap);
+ TextCodecWince::registerExtendedCodecs(addToTextCodecMap);
+#endif
}
PassOwnPtr<TextCodec> newTextCodec(const TextEncoding& encoding)