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

Issue 1410343003: [Merge to XFA] Revert "Revert "Add type cast definitions for CPDF_Dictionary."" (Closed)

Created:
5 years, 2 months ago by dsinclair
Modified:
5 years, 2 months ago
Reviewers:
Tom Sepez
CC:
pdfium-reviews_googlegroups.com
Base URL:
https://pdfium.googlesource.com/pdfium.git@xfa
Target Ref:
refs/heads/xfa
Visibility:
Public.

Description

[Merge to XFA] Revert "Revert "Add type cast definitions for CPDF_Dictionary."" This reverts commit 937840e1722d1f2b77d80575d6e710d760662c9c. Add type cast definitions for CPDF_Dictionary. This CL adds ToCPDFDictionary type definitions and updates one file to use instead of straight casts. I had to fix two places where we'd casted off the constness of the original pointer. BUG=pdfium:201 R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1420583003 . (cherry picked from commit 39869b641511c882d78e17548293cdb458c36f38) Committed: https://pdfium.googlesource.com/pdfium/+/f1251c1ff2b3452854681d0648b4c1ca4180ff0d

Patch Set 1 #

Total comments: 7

Patch Set 2 : #

Patch Set 3 : Rebase to origin/xfa #

Unified diffs Side-by-side diffs Delta from patch set Stats (+255 lines, -269 lines) Patch
M core/include/fpdfapi/fpdf_objects.h View 2 chunks +12 lines, -0 lines 0 comments Download
M core/include/fpdfdoc/fpdf_doc.h View 1 chunk +2 lines, -2 lines 0 comments Download
M core/src/fpdfapi/fpdf_edit/fpdf_edit_create.cpp View 5 chunks +6 lines, -5 lines 0 comments Download
M core/src/fpdfapi/fpdf_font/fpdf_font.cpp View 2 chunks +5 lines, -3 lines 0 comments Download
M core/src/fpdfapi/fpdf_page/fpdf_page_func.cpp View 2 chunks +3 lines, -3 lines 0 comments Download
M core/src/fpdfapi/fpdf_page/fpdf_page_graph_state.cpp View 4 chunks +8 lines, -6 lines 0 comments Download
M core/src/fpdfapi/fpdf_page/fpdf_page_image.cpp View 2 chunks +2 lines, -3 lines 0 comments Download
M core/src/fpdfapi/fpdf_page/fpdf_page_parser.cpp View 6 chunks +11 lines, -12 lines 0 comments Download
M core/src/fpdfapi/fpdf_parser/fpdf_parser_decode.cpp View 3 chunks +6 lines, -5 lines 0 comments Download
M core/src/fpdfapi/fpdf_parser/fpdf_parser_document.cpp View 1 chunk +5 lines, -8 lines 0 comments Download
M core/src/fpdfapi/fpdf_parser/fpdf_parser_fdf.cpp View 3 chunks +12 lines, -17 lines 0 comments Download
M core/src/fpdfapi/fpdf_parser/fpdf_parser_objects.cpp View 8 chunks +21 lines, -11 lines 0 comments Download
M core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp View 9 chunks +13 lines, -14 lines 0 comments Download
M core/src/fpdfapi/fpdf_parser/fpdf_parser_utility.cpp View 1 chunk +1 line, -1 line 0 comments Download
M core/src/fpdfapi/fpdf_render/fpdf_render.cpp View 2 chunks +3 lines, -2 lines 0 comments Download
M core/src/fpdfapi/fpdf_render/fpdf_render_image.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M core/src/fpdfdoc/doc_action.cpp View 5 chunks +9 lines, -11 lines 0 comments Download
M core/src/fpdfdoc/doc_annot.cpp View 3 chunks +5 lines, -5 lines 0 comments Download
M core/src/fpdfdoc/doc_basic.cpp View 9 chunks +19 lines, -30 lines 0 comments Download
M core/src/fpdfdoc/doc_form.cpp View 3 chunks +12 lines, -14 lines 0 comments Download
M core/src/fpdfdoc/doc_formcontrol.cpp View 3 chunks +7 lines, -7 lines 0 comments Download
M core/src/fpdfdoc/doc_ocg.cpp View 3 chunks +6 lines, -9 lines 0 comments Download
M core/src/fpdfdoc/doc_tagged.cpp View 5 chunks +9 lines, -9 lines 0 comments Download
M core/src/fpdfdoc/doc_utils.cpp View 6 chunks +18 lines, -31 lines 0 comments Download
M core/src/fpdftext/fpdf_text_int.cpp View 2 chunks +7 lines, -3 lines 0 comments Download
M fpdfsdk/src/formfiller/FFL_CBA_Fontmap.cpp View 2 chunks +3 lines, -5 lines 0 comments Download
M fpdfsdk/src/formfiller/FFL_Utils.cpp View 1 chunk +1 line, -1 line 0 comments Download
M fpdfsdk/src/fpdf_flatten.cpp View 1 chunk +2 lines, -3 lines 0 comments Download
M fpdfsdk/src/fpdf_transformpage.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M fpdfsdk/src/fpdfdoc.cpp View 15 chunks +22 lines, -16 lines 0 comments Download
M fpdfsdk/src/fpdfeditpage.cpp View 3 chunks +3 lines, -4 lines 0 comments Download
M fpdfsdk/src/fpdfppo.cpp View 1 4 chunks +14 lines, -19 lines 0 comments Download
M fpdfsdk/src/fpdfview.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M fpdfsdk/src/fsdk_baseform.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M fpdfsdk/src/fsdk_mgr.cpp View 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
dsinclair
PTAL. Merge was not clean. Marked the conflicts with comments in the review. https://codereview.chromium.org/1410343003/diff/1/core/src/fpdftext/fpdf_text_int.cpp File ...
5 years, 2 months ago (2015-10-20 19:18:32 UTC) #1
Tom Sepez
https://codereview.chromium.org/1410343003/diff/1/core/src/fpdftext/fpdf_text_int.cpp File core/src/fpdftext/fpdf_text_int.cpp (right): https://codereview.chromium.org/1410343003/diff/1/core/src/fpdftext/fpdf_text_int.cpp#newcode1416 core/src/fpdftext/fpdf_text_int.cpp:1416: (CPDF_String*)(pDict ? pDict->GetElement(FX_BSTRC("ActualText")) On 2015/10/20 19:18:31, dsinclair wrote: > ...
5 years, 2 months ago (2015-10-20 19:49:28 UTC) #2
dsinclair
https://codereview.chromium.org/1410343003/diff/1/fpdfsdk/src/fpdfppo.cpp File fpdfsdk/src/fpdfppo.cpp (right): https://codereview.chromium.org/1410343003/diff/1/fpdfsdk/src/fpdfppo.cpp#newcode213 fpdfsdk/src/fpdfppo.cpp:213: } On 2015/10/20 19:49:28, Tom Sepez wrote: > On ...
5 years, 2 months ago (2015-10-20 19:57:16 UTC) #3
Tom Sepez
lgtm
5 years, 2 months ago (2015-10-20 20:12:16 UTC) #4
dsinclair
5 years, 2 months ago (2015-10-20 20:24:49 UTC) #5
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
f1251c1ff2b3452854681d0648b4c1ca4180ff0d (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698