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

Unified Diff: ui/gfx/render_text_win.cc

Issue 46873006: RenderTextWin: Break runs at UBLOCK_MISCELLANEOUS_SYMBOLS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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_win.cc
diff --git a/ui/gfx/render_text_win.cc b/ui/gfx/render_text_win.cc
index c808a74ca71e34dc198a4f318f5e55c8acf03f3a..c262e3cf657fa35c1f2acbafbd02ecb66feab947 100644
--- a/ui/gfx/render_text_win.cc
+++ b/ui/gfx/render_text_win.cc
@@ -918,7 +918,7 @@ void RenderTextWin::ItemizeLogicalText() {
--run_break;
}
- // Break runs adjacent to UBLOCK_GEOMETRIC_SHAPES character substrings.
+ // Break runs adjacent to character substrings in certain code blocks.
// This avoids using their fallback fonts for more characters than needed,
// in cases like "\x25B6 Media Title", etc. http://crbug.com/278913
if (run_break > run->range.start()) {
@@ -931,7 +931,9 @@ void RenderTextWin::ItemizeLogicalText() {
const UBlockCode current_block_code = ublock_getCode(iter.get());
if (current_block_code != first_block_code &&
(current_block_code == UBLOCK_GEOMETRIC_SHAPES ||
- first_block_code == UBLOCK_GEOMETRIC_SHAPES)) {
+ current_block_code == UBLOCK_MISCELLANEOUS_SYMBOLS ||
+ first_block_code == UBLOCK_GEOMETRIC_SHAPES ||
+ first_block_code == UBLOCK_MISCELLANEOUS_SYMBOLS)) {
Alexei Svitkine (slow) 2013/11/04 20:59:15 Since first_block_code doesn't change in the while
msw 2013/11/04 22:22:15 Done; plus I added a helper and refactored a littl
run_break = run_start + iter.array_pos();
break;
}
« 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