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

Side by Side Diff: core/src/fpdfapi/fpdf_edit/fpdf_edit_create.cpp

Issue 1630973002: Remove struct PARSE_OPTIONS. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Rebase, prior merge suspect. Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #include "core/src/fpdfapi/fpdf_edit/editint.h" 7 #include "core/src/fpdfapi/fpdf_edit/editint.h"
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 1272 matching lines...) Expand 10 before | Expand all | Expand 10 after
1283 if (m_pParser->m_V5Type[objnum] == 0 || m_pParser->m_V5Type[objnum] == 255) { 1283 if (m_pParser->m_V5Type[objnum] == 0 || m_pParser->m_V5Type[objnum] == 255) {
1284 return 0; 1284 return 0;
1285 } 1285 }
1286 m_ObjectOffset[objnum] = m_Offset; 1286 m_ObjectOffset[objnum] = m_Offset;
1287 FX_BOOL bExistInMap = 1287 FX_BOOL bExistInMap =
1288 pdfium::ContainsKey(m_pDocument->m_IndirectObjs, objnum); 1288 pdfium::ContainsKey(m_pDocument->m_IndirectObjs, objnum);
1289 FX_BOOL bObjStm = 1289 FX_BOOL bObjStm =
1290 (m_pParser->m_V5Type[objnum] == 2) && m_pEncryptDict && !m_pXRefStream; 1290 (m_pParser->m_V5Type[objnum] == 2) && m_pEncryptDict && !m_pXRefStream;
1291 if (m_pParser->m_bVersionUpdated || m_bSecurityChanged || bExistInMap || 1291 if (m_pParser->m_bVersionUpdated || m_bSecurityChanged || bExistInMap ||
1292 bObjStm) { 1292 bObjStm) {
1293 CPDF_Object* pObj = m_pDocument->GetIndirectObject(objnum, nullptr); 1293 CPDF_Object* pObj = m_pDocument->GetIndirectObject(objnum);
1294 if (!pObj) { 1294 if (!pObj) {
1295 m_ObjectOffset[objnum] = 0; 1295 m_ObjectOffset[objnum] = 0;
1296 return 0; 1296 return 0;
1297 } 1297 }
1298 if (WriteIndirectObj(pObj)) { 1298 if (WriteIndirectObj(pObj)) {
1299 return -1; 1299 return -1;
1300 } 1300 }
1301 if (!bExistInMap) { 1301 if (!bExistInMap) {
1302 m_pDocument->ReleaseIndirectObject(objnum); 1302 m_pDocument->ReleaseIndirectObject(objnum);
1303 } 1303 }
(...skipping 774 matching lines...) Expand 10 before | Expand all | Expand 10 after
2078 m_bNewCrypto = FALSE; 2078 m_bNewCrypto = FALSE;
2079 if (!m_bStandardSecurity) { 2079 if (!m_bStandardSecurity) {
2080 return; 2080 return;
2081 } 2081 }
2082 if (m_pEncryptDict) { 2082 if (m_pEncryptDict) {
2083 m_pEncryptDict->Release(); 2083 m_pEncryptDict->Release();
2084 m_pEncryptDict = NULL; 2084 m_pEncryptDict = NULL;
2085 } 2085 }
2086 m_bStandardSecurity = FALSE; 2086 m_bStandardSecurity = FALSE;
2087 } 2087 }
OLDNEW
« no previous file with comments | « core/include/fpdfapi/fpdf_parser.h ('k') | core/src/fpdfapi/fpdf_parser/fpdf_parser_document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698