summaryrefslogtreecommitdiffstats
path: root/chrome/browser/renderer_host
diff options
context:
space:
mode:
authoragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-24 02:32:32 +0000
committeragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-24 02:32:32 +0000
commitce1f48ec9ba4c877a8144b9734c478d9e0d0d951 (patch)
tree540bc526eb033c37a90e55e5d3461ae973a9b040 /chrome/browser/renderer_host
parente684a31a3733e0a3047c56c818a9cd42742b0ba4 (diff)
downloadchromium_src-ce1f48ec9ba4c877a8144b9734c478d9e0d0d951.zip
chromium_src-ce1f48ec9ba4c877a8144b9734c478d9e0d0d951.tar.gz
chromium_src-ce1f48ec9ba4c877a8144b9734c478d9e0d0d951.tar.bz2
Linux: fix fake italics for fonts without italic variants.
Before this patch we assumed that the style which we got from fontconfig was the one that we asked for. Rather than do this we need to query the resulting style and plumb that back into WebKit. Once WebKit knows that there's a mismatch between the request and actual styles it can trigger faking. BUG=14810 http://codereview.chromium.org/147005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19095 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/renderer_host')
-rw-r--r--chrome/browser/renderer_host/render_sandbox_host_linux.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/chrome/browser/renderer_host/render_sandbox_host_linux.cc b/chrome/browser/renderer_host/render_sandbox_host_linux.cc
index c0ca6f6..dcd20d9 100644
--- a/chrome/browser/renderer_host/render_sandbox_host_linux.cc
+++ b/chrome/browser/renderer_host/render_sandbox_host_linux.cc
@@ -133,8 +133,8 @@ class SandboxIPCProcess {
unsigned result_fileid;
const bool r = font_config_->Match(
- &result_family, &result_fileid, fileid_valid, fileid, family, is_bold,
- is_italic);
+ &result_family, &result_fileid, fileid_valid, fileid, family, &is_bold,
+ &is_italic);
Pickle reply;
if (!r) {
@@ -143,6 +143,8 @@ class SandboxIPCProcess {
reply.WriteBool(true);
reply.WriteUInt32(result_fileid);
reply.WriteString(result_family);
+ reply.WriteBool(is_bold);
+ reply.WriteBool(is_italic);
}
SendRendererReply(fds, reply, -1);
}