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

Unified Diff: ui/gfx/render_text_mac.cc

Issue 924543004: adding baseline options for super/sub scripting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: changed draw rect test; added bug numbers Created 5 years, 10 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: ui/gfx/render_text_mac.cc
diff --git a/ui/gfx/render_text_mac.cc b/ui/gfx/render_text_mac.cc
index e60ecca6543b5744491641d531c9e7e7cd728954..3d75dcdad0e33cf276333e96cdc3e922ab4fb761 100644
--- a/ui/gfx/render_text_mac.cc
+++ b/ui/gfx/render_text_mac.cc
@@ -229,7 +229,7 @@ void RenderTextMac::ApplyStyles(CFMutableAttributedStringRef attr_string,
attributes_.reset(CFArrayCreateMutable(NULL, 0, &kCFTypeArrayCallBacks));
// https://developer.apple.com/library/mac/#documentation/Carbon/Reference/CoreText_StringAttributes_Ref/Reference/reference.html
- internal::StyleIterator style(colors(), styles());
+ internal::StyleIterator style(colors(), baselines(), styles());
const size_t layout_text_length = GetDisplayText().length();
for (size_t i = 0, end = 0; i < layout_text_length; i = end) {
end = TextIndexToDisplayIndex(style.GetRange().end());

Powered by Google App Engine
This is Rietveld 408576698