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

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

Issue 10540038: linux: Pass subpixel positioning setting to WebKit. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
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 8681ddd2fe4a250820bc520b5978e79aa93be595..3685a89e8b513e74fd1ab6cc13c149daa7e3f906 100644
--- a/content/browser/renderer_host/render_sandbox_host_linux.cc
+++ b/content/browser/renderer_host/render_sandbox_host_linux.cc
@@ -34,6 +34,7 @@
#include "third_party/npapi/bindings/npapi_extensions.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/linux/WebFontInfo.h"
+#include "ui/base/ui_base_switches.h"
using WebKit::WebCString;
using WebKit::WebFontInfo;
@@ -62,6 +63,12 @@ class SandboxIPCProcess {
sandbox_cmd_.push_back(sandbox_cmd);
sandbox_cmd_.push_back(base::kFindInodeSwitch);
}
+
+ // FontConfig doesn't provide a standard property to control subpixel
+ // positioning, so we pass a UI flag through to WebKit.
+ WebFontInfo::setSubpixelPositioning(
+ CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kEnableTextSubpixelPositioning));
tony 2012/06/06 23:43:16 How does this command line switch get set on the s
Daniel Erat 2012/06/07 00:13:34 That's a good question (for Adam). :-) It seems t
agl 2012/06/07 21:55:24 I have no idea either. How does this even compile?
}
~SandboxIPCProcess();
@@ -300,7 +307,8 @@ class SandboxIPCProcess {
reply.WriteInt(style.useHinting);
reply.WriteInt(style.hintStyle);
reply.WriteInt(style.useAntiAlias);
- reply.WriteInt(style.useSubpixel);
+ reply.WriteInt(style.useSubpixelRendering);
+ reply.WriteInt(style.useSubpixelPositioning);
SendRendererReply(fds, reply, -1);
}
« no previous file with comments | « chrome/browser/renderer_preferences_util.cc ('k') | content/common/child_process_sandbox_support_impl_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698