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

Issue 1037863002: Remove the code which sorts and removes duplicates from the fallback font list (Closed)

Created:
5 years, 9 months ago by ananta
Modified:
5 years, 9 months ago
Reviewers:
msw
CC:
chromium-reviews, derat+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove the code which sorts and removes duplicates from the fallback font list This causes wrong fallback fonts to be picked leading to text displaying badly. To avoid duplicate fonts from being processed, the proposal is to use a set to track those and skip them. BUG=470397 Committed: https://crrev.com/46b2013e68f391dc8c82c12cb26f1053b63c12ec Cr-Commit-Position: refs/heads/master@{#322320}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Add case insensitive comparison functionality to the set #

Total comments: 5

Patch Set 3 : Address comments. #

Total comments: 2

Patch Set 4 : Renamed variable #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -12 lines) Patch
M ui/gfx/render_text_harfbuzz.cc View 1 2 3 4 chunks +15 lines, -12 lines 0 comments Download

Messages

Total messages: 13 (2 generated)
ananta
5 years, 9 months ago (2015-03-25 21:58:24 UTC) #2
msw
lgtm with nits; remember to merge after verifying. https://codereview.chromium.org/1037863002/diff/1/ui/gfx/render_text_harfbuzz.cc File ui/gfx/render_text_harfbuzz.cc (right): https://codereview.chromium.org/1037863002/diff/1/ui/gfx/render_text_harfbuzz.cc#newcode1310 ui/gfx/render_text_harfbuzz.cc:1310: // ...
5 years, 9 months ago (2015-03-25 22:55:29 UTC) #3
ananta
https://codereview.chromium.org/1037863002/diff/1/ui/gfx/render_text_harfbuzz.cc File ui/gfx/render_text_harfbuzz.cc (right): https://codereview.chromium.org/1037863002/diff/1/ui/gfx/render_text_harfbuzz.cc#newcode1310 ui/gfx/render_text_harfbuzz.cc:1310: // The fallback font list could contain duplicate fonts. ...
5 years, 9 months ago (2015-03-25 23:19:48 UTC) #4
msw
https://codereview.chromium.org/1037863002/diff/20001/ui/gfx/render_text_harfbuzz.cc File ui/gfx/render_text_harfbuzz.cc (right): https://codereview.chromium.org/1037863002/diff/20001/ui/gfx/render_text_harfbuzz.cc#newcode474 ui/gfx/render_text_harfbuzz.cc:474: return base::strncasecmp(a.c_str(), b.c_str(), b.length()) < 0; Will strncasecmp work ...
5 years, 9 months ago (2015-03-25 23:23:42 UTC) #5
ananta
https://codereview.chromium.org/1037863002/diff/20001/ui/gfx/render_text_harfbuzz.cc File ui/gfx/render_text_harfbuzz.cc (right): https://codereview.chromium.org/1037863002/diff/20001/ui/gfx/render_text_harfbuzz.cc#newcode474 ui/gfx/render_text_harfbuzz.cc:474: return base::strncasecmp(a.c_str(), b.c_str(), b.length()) < 0; On 2015/03/25 23:23:42, ...
5 years, 9 months ago (2015-03-25 23:39:49 UTC) #6
msw
https://codereview.chromium.org/1037863002/diff/20001/ui/gfx/render_text_harfbuzz.cc File ui/gfx/render_text_harfbuzz.cc (right): https://codereview.chromium.org/1037863002/diff/20001/ui/gfx/render_text_harfbuzz.cc#newcode1319 ui/gfx/render_text_harfbuzz.cc:1319: duplicate_fallback_font_tracker; On 2015/03/25 23:39:49, ananta wrote: > On 2015/03/25 ...
5 years, 9 months ago (2015-03-25 23:42:07 UTC) #7
ananta
https://codereview.chromium.org/1037863002/diff/40001/ui/gfx/render_text_harfbuzz.cc File ui/gfx/render_text_harfbuzz.cc (right): https://codereview.chromium.org/1037863002/diff/40001/ui/gfx/render_text_harfbuzz.cc#newcode1329 ui/gfx/render_text_harfbuzz.cc:1329: duplicate_fallback_fonts.end()) On 2015/03/25 23:42:07, msw wrote: > nit: fits ...
5 years, 9 months ago (2015-03-25 23:47:27 UTC) #8
msw
lgtm!
5 years, 9 months ago (2015-03-25 23:51:10 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1037863002/60001
5 years, 9 months ago (2015-03-26 01:18:29 UTC) #11
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 9 months ago (2015-03-26 04:38:42 UTC) #12
commit-bot: I haz the power
5 years, 9 months ago (2015-03-26 04:39:31 UTC) #13
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/46b2013e68f391dc8c82c12cb26f1053b63c12ec
Cr-Commit-Position: refs/heads/master@{#322320}

Powered by Google App Engine
This is Rietveld 408576698