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

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

Issue 336153003: Keep track of paths for fallback fonts in sandbox_ipc_linux (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased on fciId->fontconfigInterfaceId rename Created 6 years, 6 months 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.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/sandbox_ipc_linux.cc
diff --git a/content/browser/renderer_host/sandbox_ipc_linux.cc b/content/browser/renderer_host/sandbox_ipc_linux.cc
index 7598bdbcc13861893150a1f41ebecb32552893b0..c8566195797b0e2a6b4d68a8ad2a67db9bb928fa 100644
--- a/content/browser/renderer_host/sandbox_ipc_linux.cc
+++ b/content/browser/renderer_host/sandbox_ipc_linux.cc
@@ -331,6 +331,9 @@ void SandboxIPCHandler::HandleGetFallbackFontForChar(
blink::WebFallbackFont fallbackFont;
WebFontInfo::fallbackFontForChar(c, preferred_locale.c_str(), &fallbackFont);
+ int pathIndex = FindOrAddPath(SkString(fallbackFont.filename.data()));
+ fallbackFont.fontconfigInterfaceId = pathIndex;
+
Pickle reply;
if (fallbackFont.name.data()) {
reply.WriteString(fallbackFont.name.data());
@@ -342,6 +345,7 @@ void SandboxIPCHandler::HandleGetFallbackFontForChar(
} else {
reply.WriteString(std::string());
}
+ reply.WriteInt(fallbackFont.fontconfigInterfaceId);
reply.WriteInt(fallbackFont.ttcIndex);
reply.WriteBool(fallbackFont.isBold);
reply.WriteBool(fallbackFont.isItalic);
« no previous file with comments | « no previous file | content/common/child_process_sandbox_support_impl_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698