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

Unified Diff: ui/gfx/render_text.cc

Issue 326093004: MacViews: Enable RenderTextHarfBuzz to get Textfields to work. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix for msw 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/render_text.cc
diff --git a/ui/gfx/render_text.cc b/ui/gfx/render_text.cc
index 50ef6440e33fbfe8048b1cedb210c8cb40d9eb20..60b00c0878ed2a342a1feb11611b304532542f9c 100644
--- a/ui/gfx/render_text.cc
+++ b/ui/gfx/render_text.cc
@@ -412,11 +412,16 @@ RenderText::~RenderText() {
}
RenderText* RenderText::CreateInstance() {
+#if defined(OS_MACOSX) && defined(TOOLKIT_VIEWS)
+ // Use the more complete HarfBuzz implementation for Views controls on Mac.
+ return new RenderTextHarfBuzz;
+#else
if (CommandLine::ForCurrentProcess()->HasSwitch(
switches::kEnableHarfBuzzRenderText)) {
return new RenderTextHarfBuzz;
}
return CreateNativeInstance();
+#endif
}
void RenderText::SetText(const base::string16& text) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698