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

Issue 2205543002: Generate default AP stream for underline annotation. (Closed)

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

Description

Generate default AP stream for underline annotation. This patch generates a default AP stream for underline annotation so that underline annotations without AP stream can be displayed. Also, roll DEPS for testing/corpus to cae29d1 to test underline annotations. BUG=62625 Committed: https://pdfium.googlesource.com/pdfium/+/33e9b26ba3c191262d0abb945fda1efb3cdb3051

Patch Set 1 : Generate default AP stream for underline annotation. #

Total comments: 2

Patch Set 2 : Generate default AP stream for underline annotation. #

Total comments: 4

Patch Set 3 : Generate default AP stream for underline annotation. #

Total comments: 6

Patch Set 4 : Generate default AP stream for underline annotation. #

Total comments: 2

Patch Set 5 : Generate default AP stream for underline annotation. #

Total comments: 2

Patch Set 6 : Generate default AP stream for underline annotation. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+94 lines, -36 lines) Patch
M DEPS View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M core/fpdfdoc/cpdf_annot.cpp View 1 chunk +2 lines, -0 lines 0 comments Download
M core/fpdfdoc/cpvt_generateap.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M core/fpdfdoc/cpvt_generateap.cpp View 1 2 3 4 5 3 chunks +89 lines, -35 lines 0 comments Download

Messages

Total messages: 24 (10 generated)
jaepark
https://codereview.chromium.org/2205543002/diff/20001/core/fpdfdoc/cpvt_generateap.cpp File core/fpdfdoc/cpvt_generateap.cpp (right): https://codereview.chromium.org/2205543002/diff/20001/core/fpdfdoc/cpvt_generateap.cpp#newcode561 core/fpdfdoc/cpvt_generateap.cpp:561: pAnnotDict->KeyExist("ca") ? pAnnotDict->GetNumberBy("ca") : 1.0; Although I think this ...
4 years, 4 months ago (2016-08-01 23:10:53 UTC) #3
Lei Zhang
https://codereview.chromium.org/2205543002/diff/20001/core/fpdfdoc/cpvt_generateap.cpp File core/fpdfdoc/cpvt_generateap.cpp (right): https://codereview.chromium.org/2205543002/diff/20001/core/fpdfdoc/cpvt_generateap.cpp#newcode561 core/fpdfdoc/cpvt_generateap.cpp:561: pAnnotDict->KeyExist("ca") ? pAnnotDict->GetNumberBy("ca") : 1.0; On 2016/08/01 23:10:52, jaepark ...
4 years, 4 months ago (2016-08-01 23:16:24 UTC) #4
jaepark
On 2016/08/01 23:16:24, Lei Zhang wrote: > Have you considered adding more tests to exercise ...
4 years, 4 months ago (2016-08-01 23:43:01 UTC) #5
jaepark
Rebased to upstream and used CA field in annotation dictionary for annotation opacity.
4 years, 4 months ago (2016-08-02 01:15:46 UTC) #6
Lei Zhang
https://codereview.chromium.org/2205543002/diff/40001/core/fpdfdoc/cpvt_generateap.cpp File core/fpdfdoc/cpvt_generateap.cpp (right): https://codereview.chromium.org/2205543002/diff/40001/core/fpdfdoc/cpvt_generateap.cpp#newcode446 core/fpdfdoc/cpvt_generateap.cpp:446: CPDF_Dictionary* GenerateExtGStateDict(CFX_ByteString sName, Pass CFX_ByteStrings by const-ref? https://codereview.chromium.org/2205543002/diff/40001/core/fpdfdoc/cpvt_generateap.cpp#newcode577 core/fpdfdoc/cpvt_generateap.cpp:577: ...
4 years, 4 months ago (2016-08-02 01:22:57 UTC) #7
jaepark
https://codereview.chromium.org/2205543002/diff/40001/core/fpdfdoc/cpvt_generateap.cpp File core/fpdfdoc/cpvt_generateap.cpp (right): https://codereview.chromium.org/2205543002/diff/40001/core/fpdfdoc/cpvt_generateap.cpp#newcode446 core/fpdfdoc/cpvt_generateap.cpp:446: CPDF_Dictionary* GenerateExtGStateDict(CFX_ByteString sName, On 2016/08/02 01:22:57, Lei Zhang wrote: ...
4 years, 4 months ago (2016-08-02 20:31:34 UTC) #8
Lei Zhang
Looking good... https://codereview.chromium.org/2205543002/diff/60001/core/fpdfdoc/cpvt_generateap.cpp File core/fpdfdoc/cpvt_generateap.cpp (right): https://codereview.chromium.org/2205543002/diff/60001/core/fpdfdoc/cpvt_generateap.cpp#newcode458 core/fpdfdoc/cpvt_generateap.cpp:458: if (pAnnotDict->KeyExist("C")) { Can we just omit ...
4 years, 4 months ago (2016-08-02 21:08:22 UTC) #9
jaepark
https://codereview.chromium.org/2205543002/diff/60001/core/fpdfdoc/cpvt_generateap.cpp File core/fpdfdoc/cpvt_generateap.cpp (right): https://codereview.chromium.org/2205543002/diff/60001/core/fpdfdoc/cpvt_generateap.cpp#newcode458 core/fpdfdoc/cpvt_generateap.cpp:458: if (pAnnotDict->KeyExist("C")) { On 2016/08/02 21:08:22, Lei Zhang wrote: ...
4 years, 4 months ago (2016-08-02 22:15:20 UTC) #10
Lei Zhang
Do we need to roll DEPS? https://codereview.chromium.org/2205543002/diff/80001/core/fpdfdoc/cpvt_generateap.cpp File core/fpdfdoc/cpvt_generateap.cpp (right): https://codereview.chromium.org/2205543002/diff/80001/core/fpdfdoc/cpvt_generateap.cpp#newcode489 core/fpdfdoc/cpvt_generateap.cpp:489: // Take ownership ...
4 years, 4 months ago (2016-08-02 22:43:08 UTC) #11
jaepark
Rolled DEPS for testing/corpus. https://codereview.chromium.org/2205543002/diff/80001/core/fpdfdoc/cpvt_generateap.cpp File core/fpdfdoc/cpvt_generateap.cpp (right): https://codereview.chromium.org/2205543002/diff/80001/core/fpdfdoc/cpvt_generateap.cpp#newcode489 core/fpdfdoc/cpvt_generateap.cpp:489: // Take ownership of |pExtGStateDict|. ...
4 years, 4 months ago (2016-08-02 22:53:40 UTC) #13
Lei Zhang
lgtm https://codereview.chromium.org/2205543002/diff/100001/core/fpdfdoc/cpvt_generateap.cpp File core/fpdfdoc/cpvt_generateap.cpp (right): https://codereview.chromium.org/2205543002/diff/100001/core/fpdfdoc/cpvt_generateap.cpp#newcode485 core/fpdfdoc/cpvt_generateap.cpp:485: // Take ownership of |pExtGStateDict|. Takes, sorry for ...
4 years, 4 months ago (2016-08-02 22:55:08 UTC) #14
jaepark
https://codereview.chromium.org/2205543002/diff/100001/core/fpdfdoc/cpvt_generateap.cpp File core/fpdfdoc/cpvt_generateap.cpp (right): https://codereview.chromium.org/2205543002/diff/100001/core/fpdfdoc/cpvt_generateap.cpp#newcode485 core/fpdfdoc/cpvt_generateap.cpp:485: // Take ownership of |pExtGStateDict|. On 2016/08/02 22:55:08, Lei ...
4 years, 4 months ago (2016-08-02 23:20:26 UTC) #19
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/2205543002/120001
4 years, 4 months ago (2016-08-02 23:22:36 UTC) #22
commit-bot: I haz the power
4 years, 4 months ago (2016-08-02 23:22:57 UTC) #24
Message was sent while issue was closed.
Committed patchset #6 (id:120001) as
https://pdfium.googlesource.com/pdfium/+/33e9b26ba3c191262d0abb945fda1efb3cdb...

Powered by Google App Engine
This is Rietveld 408576698