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); |