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

Issue 554913003: Change the forced clear order of CPDF_DocPageData::Clear, and remove m_pDocument in CPDF_Color (Closed)

Created:
6 years, 3 months ago by Bo Xu
Modified:
5 years, 9 months ago
Reviewers:
Tom Sepez, jun_fang
Base URL:
https://pdfium.googlesource.com/pdfium.git@master
Visibility:
Public.

Description

Change the forced clear order of CPDF_DocPageData::Clear, and remove m_pDocument in CPDF_Color If not forced clear, the counter of CPDF_Pattern will take care the count of referenced instance. When forced clear, clear color first to make sure pattern still exists when referencing it. BUG=411154 R=tsepez@chromium.org Committed: https://pdfium.googlesource.com/pdfium/+/9175beec2686231fe284e8c8095d04668817509b

Patch Set 1 #

Patch Set 2 : Remove m_pDocument in CPDF_Color and change order when force clear #

Total comments: 4

Patch Set 3 : Nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -24 lines) Patch
M core/include/fpdfapi/fpdf_resource.h View 1 2 chunks +1 line, -2 lines 0 comments Download
M core/src/fpdfapi/fpdf_page/fpdf_page_colors.cpp View 1 2 5 chunks +8 lines, -11 lines 0 comments Download
M core/src/fpdfapi/fpdf_page/fpdf_page_doc.cpp View 1 2 chunks +11 lines, -11 lines 0 comments Download

Messages

Total messages: 7 (1 generated)
Bo Xu
Hi Tom, please review this one, thanks.
6 years, 3 months ago (2014-09-08 22:19:39 UTC) #2
Tom Sepez
On 2014/09/08 22:19:39, Bo Xu wrote: > Hi Tom, please review this one, thanks. It ...
6 years, 3 months ago (2014-09-08 22:43:09 UTC) #3
Bo Xu
On 2014/09/08 22:43:09, Tom Sepez wrote: > On 2014/09/08 22:19:39, Bo Xu wrote: > > ...
6 years, 3 months ago (2014-09-09 00:16:54 UTC) #4
Tom Sepez
LGTM with nit. https://codereview.chromium.org/554913003/diff/20001/core/src/fpdfapi/fpdf_page/fpdf_page_colors.cpp File core/src/fpdfapi/fpdf_page/fpdf_page_colors.cpp (right): https://codereview.chromium.org/554913003/diff/20001/core/src/fpdfapi/fpdf_page/fpdf_page_colors.cpp#newcode1295 core/src/fpdfapi/fpdf_page/fpdf_page_colors.cpp:1295: if (pPattern && pvalue->m_pPattern->m_pDocument) { nit: ...
6 years, 3 months ago (2014-09-09 23:59:04 UTC) #5
Bo Xu
https://codereview.chromium.org/554913003/diff/20001/core/src/fpdfapi/fpdf_page/fpdf_page_colors.cpp File core/src/fpdfapi/fpdf_page/fpdf_page_colors.cpp (right): https://codereview.chromium.org/554913003/diff/20001/core/src/fpdfapi/fpdf_page/fpdf_page_colors.cpp#newcode1295 core/src/fpdfapi/fpdf_page/fpdf_page_colors.cpp:1295: if (pPattern && pvalue->m_pPattern->m_pDocument) { On 2014/09/09 23:59:04, Tom ...
6 years, 3 months ago (2014-09-10 00:04:43 UTC) #6
Bo Xu
6 years, 3 months ago (2014-09-10 01:39:27 UTC) #7
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as 9175bee (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698