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

Issue 1921033003: Fixup page removal for XFA documents. (Closed)

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

Description

Fixup page removal for XFA documents. Currently when you call DelegePage on a CPDFXFA_Document the page will not be correctly removed. The page is left in the underlying document and, if GetPage was never called for that page index nothing will happen. This CL updates the code to always remove the page_index from the underlying CPDF_Document then, if needed, the original code runs to clear out the XFA page list for that page. BUG=chromium:596373 Committed: https://pdfium.googlesource.com/pdfium/+/1f5f2fff688f4075a62c87a032c9a9070bde89fc

Patch Set 1 #

Patch Set 2 : #

Total comments: 6

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -4 lines) Patch
M fpdfsdk/fpdfdoc_embeddertest.cpp View 1 2 2 chunks +8 lines, -0 lines 0 comments Download
M fpdfsdk/fpdfxfa/fpdfxfa_doc.cpp View 1 2 4 chunks +12 lines, -4 lines 0 comments Download

Messages

Total messages: 11 (4 generated)
dsinclair
PTAL. This should fix DOCTYPE_STATIC_XFA and DOCTYPE_PDF when using XFA, I don't think DOCTYPE_DYNAMIC_XFA will ...
4 years, 8 months ago (2016-04-25 20:40:30 UTC) #2
Lei Zhang
https://codereview.chromium.org/1921033003/diff/20001/fpdfsdk/fpdfdoc_embeddertest.cpp File fpdfsdk/fpdfdoc_embeddertest.cpp (right): https://codereview.chromium.org/1921033003/diff/20001/fpdfsdk/fpdfdoc_embeddertest.cpp#newcode146 fpdfsdk/fpdfdoc_embeddertest.cpp:146: FPDF_LoadXFA(document()); Check return value? https://codereview.chromium.org/1921033003/diff/20001/fpdfsdk/fpdfdoc_embeddertest.cpp#newcode148 fpdfsdk/fpdfdoc_embeddertest.cpp:148: int count = ...
4 years, 8 months ago (2016-04-25 20:52:59 UTC) #3
Tom Sepez
LGTM, but see also https://codereview.chromium.org/1804163002 where this was introduced.
4 years, 8 months ago (2016-04-25 20:57:31 UTC) #4
dsinclair
https://codereview.chromium.org/1921033003/diff/20001/fpdfsdk/fpdfdoc_embeddertest.cpp File fpdfsdk/fpdfdoc_embeddertest.cpp (right): https://codereview.chromium.org/1921033003/diff/20001/fpdfsdk/fpdfdoc_embeddertest.cpp#newcode146 fpdfsdk/fpdfdoc_embeddertest.cpp:146: FPDF_LoadXFA(document()); On 2016/04/25 20:52:59, Lei Zhang wrote: > Check ...
4 years, 8 months ago (2016-04-25 21:01:13 UTC) #5
dsinclair
On 2016/04/25 20:57:31, Tom Sepez wrote: > LGTM, but see also https://codereview.chromium.org/1804163002 where this was ...
4 years, 8 months ago (2016-04-25 21:02:32 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1921033003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1921033003/40001
4 years, 8 months ago (2016-04-25 21:06:20 UTC) #9
commit-bot: I haz the power
4 years, 8 months ago (2016-04-25 21:15:00 UTC) #11
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://pdfium.googlesource.com/pdfium/+/1f5f2fff688f4075a62c87a032c9a9070bde...

Powered by Google App Engine
This is Rietveld 408576698