summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webpreferences.cc
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-15 18:50:37 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-15 18:50:37 +0000
commit4bda39710e4b3b88563b0d25b48fb8118df4d745 (patch)
treeeab74da15865d61bf6c74382b2f624df30c910c7 /webkit/glue/webpreferences.cc
parentc82aec11bac4bb3506aa2da55d831a482b303196 (diff)
downloadchromium_src-4bda39710e4b3b88563b0d25b48fb8118df4d745.zip
chromium_src-4bda39710e4b3b88563b0d25b48fb8118df4d745.tar.gz
chromium_src-4bda39710e4b3b88563b0d25b48fb8118df4d745.tar.bz2
glue/webpreferences: use string16 for font names
And fix the users. BUG=23581 Review URL: http://codereview.chromium.org/5774005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69284 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webpreferences.cc')
-rw-r--r--webkit/glue/webpreferences.cc22
1 files changed, 11 insertions, 11 deletions
diff --git a/webkit/glue/webpreferences.cc b/webkit/glue/webpreferences.cc
index c6c32e7..abe5903 100644
--- a/webkit/glue/webpreferences.cc
+++ b/webkit/glue/webpreferences.cc
@@ -21,11 +21,11 @@ using WebKit::WebURL;
using WebKit::WebView;
WebPreferences::WebPreferences()
- : standard_font_family(L"Times New Roman"),
- fixed_font_family(L"Courier New"),
- serif_font_family(L"Times New Roman"),
- sans_serif_font_family(L"Arial"),
- cursive_font_family(L"Script"),
+ : standard_font_family(ASCIIToUTF16("Times New Roman")),
+ fixed_font_family(ASCIIToUTF16("Courier New")),
+ serif_font_family(ASCIIToUTF16("Times New Roman")),
+ sans_serif_font_family(ASCIIToUTF16("Arial")),
+ cursive_font_family(ASCIIToUTF16("Script")),
fantasy_font_family(), // Not sure what to use on Windows.
default_font_size(16),
default_fixed_font_size(13),
@@ -73,12 +73,12 @@ WebPreferences::~WebPreferences() {
void WebPreferences::Apply(WebView* web_view) const {
WebSettings* settings = web_view->settings();
- settings->setStandardFontFamily(WideToUTF16Hack(standard_font_family));
- settings->setFixedFontFamily(WideToUTF16Hack(fixed_font_family));
- settings->setSerifFontFamily(WideToUTF16Hack(serif_font_family));
- settings->setSansSerifFontFamily(WideToUTF16Hack(sans_serif_font_family));
- settings->setCursiveFontFamily(WideToUTF16Hack(cursive_font_family));
- settings->setFantasyFontFamily(WideToUTF16Hack(fantasy_font_family));
+ settings->setStandardFontFamily(standard_font_family);
+ settings->setFixedFontFamily(fixed_font_family);
+ settings->setSerifFontFamily(serif_font_family);
+ settings->setSansSerifFontFamily(sans_serif_font_family);
+ settings->setCursiveFontFamily(cursive_font_family);
+ settings->setFantasyFontFamily(fantasy_font_family);
settings->setDefaultFontSize(default_font_size);
settings->setDefaultFixedFontSize(default_fixed_font_size);
settings->setMinimumFontSize(minimum_font_size);