Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(646)

Issue 5492061: Fix ToUnicode generation bug (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 8 months ago by arthurhsu
Modified:
12 years, 8 months ago
Reviewers:
Steve VanDeBogart
CC:
skia-review_googlegroups.com
Base URL:
http://skia.googlecode.com/svn/trunk
Visibility:
Public.

Description

Fix ToUnicode generation bug BUG=Chromium:104062 TEST=ToUnicode

Patch Set 1 #

Total comments: 2

Patch Set 2 : Update per code review #

Total comments: 8

Patch Set 3 : Update per code review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -7 lines) Patch
M src/pdf/SkPDFFont.cpp View 1 2 1 chunk +6 lines, -7 lines 0 comments Download

Messages

Total messages: 5
arthurhsu
Partial solution of http://code.google.com/p/chromium/issues/detail?id=104062
12 years, 8 months ago (2011-12-16 22:05:57 UTC) #1
Steve VanDeBogart
Skia doesn't require the BUG= and TEST= lines. But in this case, I would put ...
12 years, 8 months ago (2011-12-19 19:38:05 UTC) #2
arthurhsu
http://codereview.appspot.com/5492061/diff/1/src/pdf/SkPDFFont.cpp File src/pdf/SkPDFFont.cpp (right): http://codereview.appspot.com/5492061/diff/1/src/pdf/SkPDFFont.cpp#newcode480 src/pdf/SkPDFFont.cpp:480: if (glyphToUnicode[i] && (subset == NULL || subset->has(i))) { ...
12 years, 8 months ago (2011-12-19 22:55:58 UTC) #3
Steve VanDeBogart
Committed as r2944 http://codereview.appspot.com/5492061/diff/4001/src/pdf/SkPDFFont.cpp File src/pdf/SkPDFFont.cpp (right): http://codereview.appspot.com/5492061/diff/4001/src/pdf/SkPDFFont.cpp#newcode481 src/pdf/SkPDFFont.cpp:481: bool inSubset = (i != count) ...
12 years, 8 months ago (2012-01-03 18:36:30 UTC) #4
arthurhsu
12 years, 8 months ago (2012-01-03 19:07:31 UTC) #5
http://codereview.appspot.com/5492061/diff/4001/src/pdf/SkPDFFont.cpp
File src/pdf/SkPDFFont.cpp (right):

http://codereview.appspot.com/5492061/diff/4001/src/pdf/SkPDFFont.cpp#newcode481
src/pdf/SkPDFFont.cpp:481: bool inSubset = (i != count) ? subset->has(i) :
false;
On 2012/01/03 18:36:31, Steve VanDeBogart wrote:
> bool inSubset = (i < count) && (subset == NULL || subset->has(i));

Done.

http://codereview.appspot.com/5492061/diff/4001/src/pdf/SkPDFFont.cpp#newcode486
src/pdf/SkPDFFont.cpp:486: bool inRange = (i == count) ? false :
On 2012/01/03 18:36:31, Steve VanDeBogart wrote:
> just do: i < count &&

Done.

http://codereview.appspot.com/5492061/diff/4001/src/pdf/SkPDFFont.cpp#newcode487
src/pdf/SkPDFFont.cpp:487: ((i == currentRangeEntry.fEnd + 1) &&
On 2012/01/03 18:36:31, Steve VanDeBogart wrote:
> nit: unnecessary parenthesis 

Done.

http://codereview.appspot.com/5492061/diff/4001/src/pdf/SkPDFFont.cpp#newcode508
src/pdf/SkPDFFont.cpp:508: rangeEmpty = false;
On 2012/01/03 18:36:31, Steve VanDeBogart wrote:
> nit: put this inside the if(rangeEmpty) body

Done.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b