From 70ac249f04337f0040ad63a72ced111d87fdc73a Mon Sep 17 00:00:00 2001 From: "jungshik@google.com" Date: Fri, 27 Mar 2009 20:44:46 +0000 Subject: Encoding autodetection patch part 2. This is the patch to our glue and build files corresponding to my patch for webkit bug 16482 (http://bugs.webkit.org/show_bug.cgi?id=16482). Once my patch is accepted and is merged to our tree, we have to apply this patch. BUG=8587 Review URL: http://codereview.chromium.org/45037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12702 0039d316-1c4b-4281-b951-d872f2087c98 --- webkit/build/WebCore/SConscript | 1 + webkit/build/WebCore/WebCore.vcproj | 8 ++++++++ webkit/glue/webview_impl.cc | 2 +- webkit/webkit.gyp | 2 ++ 4 files changed, 12 insertions(+), 1 deletion(-) (limited to 'webkit') diff --git a/webkit/build/WebCore/SConscript b/webkit/build/WebCore/SConscript index ee72102..d153b47 100644 --- a/webkit/build/WebCore/SConscript +++ b/webkit/build/WebCore/SConscript @@ -590,6 +590,7 @@ input_files = [ '$WEBCORE_DIR/platform/text/TextCodecUserDefined.cpp', '$WEBCORE_DIR/platform/text/TextCodecUTF16.cpp', '$WEBCORE_DIR/platform/text/TextEncoding.cpp', + '$WEBCORE_DIR/platform/text/TextEncodingDetectorICU.cpp', '$WEBCORE_DIR/platform/text/TextEncodingRegistry.cpp', '$WEBCORE_DIR/platform/text/TextStream.cpp', '$WEBCORE_DIR/platform/text/UnicodeRange.cpp', diff --git a/webkit/build/WebCore/WebCore.vcproj b/webkit/build/WebCore/WebCore.vcproj index 9e58f3c..6db752f 100644 --- a/webkit/build/WebCore/WebCore.vcproj +++ b/webkit/build/WebCore/WebCore.vcproj @@ -2140,6 +2140,14 @@ > + + + + diff --git a/webkit/glue/webview_impl.cc b/webkit/glue/webview_impl.cc index f3105bd..2c591ed 100644 --- a/webkit/glue/webview_impl.cc +++ b/webkit/glue/webview_impl.cc @@ -1371,7 +1371,7 @@ void WebViewImpl::SetPreferences(const WebPreferences& preferences) { settings->setDeveloperExtrasEnabled(preferences.developer_extras_enabled); settings->setShrinksStandaloneImagesToFit( preferences.shrinks_standalone_images_to_fit); - settings->setUsesUniversalDetector(preferences.uses_universal_detector); + settings->setUsesEncodingDetector(preferences.uses_universal_detector); settings->setTextAreasAreResizable(preferences.text_areas_are_resizable); settings->setAllowScriptsToCloseWindows( preferences.allow_scripts_to_close_windows); diff --git a/webkit/webkit.gyp b/webkit/webkit.gyp index 35c4e92..22d9647 100644 --- a/webkit/webkit.gyp +++ b/webkit/webkit.gyp @@ -2767,6 +2767,8 @@ '../third_party/WebKit/WebCore/platform/text/TextDirection.h', '../third_party/WebKit/WebCore/platform/text/TextEncoding.cpp', '../third_party/WebKit/WebCore/platform/text/TextEncoding.h', + '../third_party/WebKit/WebCore/platform/text/TextEncodingDetector.h', + '../third_party/WebKit/WebCore/platform/text/TextEncodingDetectorICU.cpp', '../third_party/WebKit/WebCore/platform/text/TextEncodingRegistry.cpp', '../third_party/WebKit/WebCore/platform/text/TextEncodingRegistry.h', '../third_party/WebKit/WebCore/platform/text/TextStream.cpp', -- cgit v1.1