Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(55)

Unified Diff: content/browser/renderer_host/render_sandbox_host_linux.cc

Issue 8590028: Use new getFontFamilyForCharacters() API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/common/child_process_sandbox_support_impl_linux.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_sandbox_host_linux.cc
diff --git a/content/browser/renderer_host/render_sandbox_host_linux.cc b/content/browser/renderer_host/render_sandbox_host_linux.cc
index 0ce5d884229326b01ed6830ccd99c0187ef0f2f7..50706e90e2d93567b47621024c13d845fee805dd 100644
--- a/content/browser/renderer_host/render_sandbox_host_linux.cc
+++ b/content/browser/renderer_host/render_sandbox_host_linux.cc
@@ -267,16 +267,20 @@ class SandboxIPCProcess {
if (!pickle.ReadString(&iter, &preferred_locale))
return;
- WebCString family = WebFontInfo::familyForChars(chars.get(),
- num_chars,
- preferred_locale.c_str());
+ WebKit::WebFontFamily family;
+ WebFontInfo::familyForChars(chars.get(),
+ num_chars,
+ preferred_locale.c_str(),
+ &family);
Pickle reply;
- if (family.data()) {
- reply.WriteString(family.data());
+ if (family.name.data()) {
+ reply.WriteString(family.name.data());
} else {
reply.WriteString("");
}
+ reply.WriteBool(family.isBold);
+ reply.WriteBool(family.isItalic);
SendRendererReply(fds, reply, -1);
}
« no previous file with comments | « no previous file | content/common/child_process_sandbox_support_impl_linux.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698