summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/render_view.cc
diff options
context:
space:
mode:
authoragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-24 01:19:37 +0000
committeragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-24 01:19:37 +0000
commit6e282c938d74f513dc5a92c2d96cfd955ac05d9b (patch)
treea44afca80ab807fda393132971c52c8edcdb6cf2 /chrome/renderer/render_view.cc
parent8c2b005ffdc22c871638d0cfd356441741247bd5 (diff)
downloadchromium_src-6e282c938d74f513dc5a92c2d96cfd955ac05d9b.zip
chromium_src-6e282c938d74f513dc5a92c2d96cfd955ac05d9b.tar.gz
chromium_src-6e282c938d74f513dc5a92c2d96cfd955ac05d9b.tar.bz2
Linux: splice together RendererPreferences and SkFontHost
Dan Erat has been working down, plumbing the user's font settings from XSETTINGS in the UI thread of the browser to RendererPreferences in the renderer. At the same time, I've been working upwards: implementing subpixel rendering support in Skia and adding an interface to it in WebCore. This patch joins the two together. It adds an API surface to the WebKit API for configuring the font preferences and adds code to translate from RendererPreferences to that API. It's a little unfortunate that we need four sets of enums around the code base for things like the hinting level, but each is supposed to be self contained and adding a dependancy would much more grevious. BUG=12179 http://codereview.chromium.org/159152 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21493 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/render_view.cc')
-rw-r--r--chrome/renderer/render_view.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/chrome/renderer/render_view.cc b/chrome/renderer/render_view.cc
index 6af62ef..a2a37e1 100644
--- a/chrome/renderer/render_view.cc
+++ b/chrome/renderer/render_view.cc
@@ -2632,9 +2632,7 @@ void RenderView::OnEnableIntrinsicWidthChangedMode() {
void RenderView::OnSetRendererPrefs(const RendererPreferences& renderer_prefs) {
renderer_preferences_ = renderer_prefs;
-
- // TODO(derat): Pass |renderer_preferences_.should_antialias_text|, |hinting|,
- // and |subpixel_rendering| through to Skia.
+ UpdateFontRenderingFromRendererPrefs();
}
void RenderView::OnMediaPlayerActionAt(int x,