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

Issue 1729823004: refactor CPDF_Font and subclasses (Closed)

Created:
4 years, 10 months ago by Wei Li
Modified:
4 years, 10 months ago
Reviewers:
Lei Zhang
CC:
pdfium-reviews_googlegroups.com
Base URL:
https://pdfium.googlesource.com/pdfium.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

refactor CPDF_Font and subclasses Get rid of types; use virutal functions instead of type based checking; remove unused functions; change casts; simplify load()/UnicodeFromCharCode()/CharCodeFromUnicode() calling. R=thestig@chromium.org Committed: https://pdfium.googlesource.com/pdfium/+/6b7b5a52f42aa9b37be5307915885d5f4566c326

Patch Set 1 : Remove types and delete unused #

Total comments: 10

Patch Set 2 : refactor a few more functions #

Patch Set 3 : unfriend #

Patch Set 4 : add back a func needed on mac #

Patch Set 5 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+296 lines, -314 lines) Patch
M core/include/fpdfapi/fpdf_resource.h View 1 2 3 4 9 chunks +79 lines, -137 lines 0 comments Download
M core/src/fpdfapi/fpdf_font/fpdf_font.cpp View 1 2 3 4 35 chunks +169 lines, -140 lines 0 comments Download
M core/src/fpdfapi/fpdf_font/fpdf_font_cid.cpp View 1 2 3 5 chunks +30 lines, -13 lines 0 comments Download
M core/src/fpdfapi/fpdf_page/fpdf_page.cpp View 3 chunks +6 lines, -6 lines 0 comments Download
M core/src/fpdfapi/fpdf_page/fpdf_page_doc.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M core/src/fpdfapi/fpdf_page/fpdf_page_parser.cpp View 2 chunks +4 lines, -4 lines 0 comments Download
M core/src/fpdfapi/fpdf_render/fpdf_render_text.cpp View 7 chunks +6 lines, -12 lines 0 comments Download

Messages

Total messages: 11 (7 generated)
Wei Li
PTAL, thanks
4 years, 10 months ago (2016-02-25 00:14:26 UTC) #4
Lei Zhang
lgtm https://codereview.chromium.org/1729823004/diff/1/core/include/fpdfapi/fpdf_resource.h File core/include/fpdfapi/fpdf_resource.h (right): https://codereview.chromium.org/1729823004/diff/1/core/include/fpdfapi/fpdf_resource.h#newcode287 core/include/fpdfapi/fpdf_resource.h:287: // CPDF_Font nit: add a colon, ditto below. ...
4 years, 10 months ago (2016-02-25 01:54:02 UTC) #5
Wei Li
Thanks for reviewing it. https://codereview.chromium.org/1729823004/diff/1/core/include/fpdfapi/fpdf_resource.h File core/include/fpdfapi/fpdf_resource.h (right): https://codereview.chromium.org/1729823004/diff/1/core/include/fpdfapi/fpdf_resource.h#newcode287 core/include/fpdfapi/fpdf_resource.h:287: // CPDF_Font On 2016/02/25 01:54:02, ...
4 years, 10 months ago (2016-02-25 18:48:43 UTC) #9
Wei Li
4 years, 10 months ago (2016-02-25 19:35:46 UTC) #11
Message was sent while issue was closed.
Committed patchset #5 (id:160001) manually as
6b7b5a52f42aa9b37be5307915885d5f4566c326 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698