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

Issue 2323793003: Refactor CPDF_Document (Closed)

Created:
4 years, 3 months ago by npm
Modified:
4 years, 3 months ago
Reviewers:
Lei Zhang, dsinclair, Wei Li
CC:
pdfium-reviews_googlegroups.com
Target Ref:
refs/heads/master
Project:
pdfium
Visibility:
Public.

Description

Refactor CPDF_Document by creating new methods - Methods GetPagesDict, ProcessNonbCJK, CalculateFlags, and CalculateEncodingDict created to reduce duplicated code. - Code nits Committed: https://pdfium.googlesource.com/pdfium/+/01b67ed9b441cd485997bc08482def1f2ab265db

Patch Set 1 #

Patch Set 2 : Rebase #

Patch Set 3 : Try fix windows bot #

Total comments: 11

Patch Set 4 : Comments #

Total comments: 6

Patch Set 5 : Comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+125 lines, -157 lines) Patch
M core/fpdfapi/fpdf_parser/cpdf_document.cpp View 1 2 3 4 18 chunks +108 lines, -137 lines 0 comments Download
M core/fpdfapi/fpdf_parser/include/cpdf_document.h View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M core/fxge/ge/cfx_font.cpp View 1 2 3 4 1 chunk +12 lines, -15 lines 0 comments Download
M core/fxge/include/fx_font.h View 1 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 34 (25 generated)
npm
PTAL
4 years, 3 months ago (2016-09-08 20:19:26 UTC) #4
dsinclair
Can you split this CL into two to make it easier to read? 1- delete ...
4 years, 3 months ago (2016-09-08 20:25:27 UTC) #7
npm
On 2016/09/08 20:25:27, dsinclair wrote: > Can you split this CL into two to make ...
4 years, 3 months ago (2016-09-08 22:06:27 UTC) #15
dsinclair
https://codereview.chromium.org/2323793003/diff/40001/core/fpdfapi/fpdf_parser/cpdf_document.cpp File core/fpdfapi/fpdf_parser/cpdf_document.cpp (right): https://codereview.chromium.org/2323793003/diff/40001/core/fpdfapi/fpdf_parser/cpdf_document.cpp#newcode506 core/fpdfapi/fpdf_parser/cpdf_document.cpp:506: return pRoot->GetDictBy("Pages"); return pRoot ? pRoot->GetDictBy("Pages") : nullptr; https://codereview.chromium.org/2323793003/diff/40001/core/fpdfapi/fpdf_parser/cpdf_document.cpp#newcode731 ...
4 years, 3 months ago (2016-09-09 00:21:06 UTC) #18
npm
PTAL https://codereview.chromium.org/2323793003/diff/40001/core/fpdfapi/fpdf_parser/cpdf_document.cpp File core/fpdfapi/fpdf_parser/cpdf_document.cpp (right): https://codereview.chromium.org/2323793003/diff/40001/core/fpdfapi/fpdf_parser/cpdf_document.cpp#newcode506 core/fpdfapi/fpdf_parser/cpdf_document.cpp:506: return pRoot->GetDictBy("Pages"); On 2016/09/09 00:21:06, dsinclair wrote: > ...
4 years, 3 months ago (2016-09-09 14:24:15 UTC) #19
Lei Zhang
lgtm https://codereview.chromium.org/2323793003/diff/60001/core/fpdfapi/fpdf_parser/cpdf_document.cpp File core/fpdfapi/fpdf_parser/cpdf_document.cpp (right): https://codereview.chromium.org/2323793003/diff/60001/core/fpdfapi/fpdf_parser/cpdf_document.cpp#newcode723 core/fpdfapi/fpdf_parser/cpdf_document.cpp:723: size_t CPDF_Document::CalculateEncodingDict(int charset, Can this be static or ...
4 years, 3 months ago (2016-09-09 21:27:49 UTC) #24
npm
https://codereview.chromium.org/2323793003/diff/60001/core/fpdfapi/fpdf_parser/cpdf_document.cpp File core/fpdfapi/fpdf_parser/cpdf_document.cpp (right): https://codereview.chromium.org/2323793003/diff/60001/core/fpdfapi/fpdf_parser/cpdf_document.cpp#newcode723 core/fpdfapi/fpdf_parser/cpdf_document.cpp:723: size_t CPDF_Document::CalculateEncodingDict(int charset, On 2016/09/09 21:27:48, Lei Zhang (OOO) ...
4 years, 3 months ago (2016-09-12 14:47:27 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2323793003/80001
4 years, 3 months ago (2016-09-12 20:38:39 UTC) #32
commit-bot: I haz the power
4 years, 3 months ago (2016-09-12 20:38:56 UTC) #34
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://pdfium.googlesource.com/pdfium/+/01b67ed9b441cd485997bc08482def1f2ab2...

Powered by Google App Engine
This is Rietveld 408576698