summaryrefslogtreecommitdiffstats
path: root/webkit
diff options
context:
space:
mode:
Diffstat (limited to 'webkit')
-rw-r--r--webkit/glue/webpreferences.h2
-rw-r--r--webkit/glue/webview_impl.cc1
2 files changed, 3 insertions, 0 deletions
diff --git a/webkit/glue/webpreferences.h b/webkit/glue/webpreferences.h
index 2a4cc60..ab38077 100644
--- a/webkit/glue/webpreferences.h
+++ b/webkit/glue/webpreferences.h
@@ -39,6 +39,7 @@ struct WebPreferences {
bool java_enabled;
bool allow_scripts_to_close_windows;
bool uses_page_cache;
+ bool remote_fonts_enabled;
// TODO(tc): User style sheets will not work in chrome because it tries to
// load the style sheet using a request without a frame.
@@ -73,6 +74,7 @@ struct WebPreferences {
java_enabled(true),
allow_scripts_to_close_windows(false),
uses_page_cache(false),
+ remote_fonts_enabled(false),
user_style_sheet_enabled(false) {
}
};
diff --git a/webkit/glue/webview_impl.cc b/webkit/glue/webview_impl.cc
index 53d0511..0e13f6e 100644
--- a/webkit/glue/webview_impl.cc
+++ b/webkit/glue/webview_impl.cc
@@ -1466,6 +1466,7 @@ void WebViewImpl::SetPreferences(const WebPreferences& preferences) {
settings->setUserStyleSheetLocation(KURL());
}
settings->setUsesPageCache(preferences.uses_page_cache);
+ settings->setDownloadableBinaryFontsEnabled(preferences.remote_fonts_enabled);
// This setting affects the behavior of links in an editable region:
// clicking the link should select it rather than navigate to it.