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

Side by Side Diff: core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp

Issue 1152693005: Merge to XFA: Move fx_safe_types.h to include/ directory. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Fix BUILD.gn Created 5 years, 6 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 "../../../include/fpdfapi/fpdf_parser.h"
8 #include "../../../include/fpdfapi/fpdf_module.h"
9 #include "../../../include/fpdfapi/fpdf_page.h"
10 #include "../../../src/fxcrt/fx_safe_types.h"
11 #include "../fpdf_page/pageint.h"
12 #include <utility> 7 #include <utility>
13 #include <vector> 8 #include <vector>
14 9
10 #include "../../../include/fpdfapi/fpdf_module.h"
11 #include "../../../include/fpdfapi/fpdf_page.h"
12 #include "../../../include/fpdfapi/fpdf_parser.h"
13 #include "../../../include/fxcrt/fx_safe_types.h"
14 #include "../fpdf_page/pageint.h"
15
15 FX_BOOL IsSignatureDict(const CPDF_Dictionary* pDict) 16 FX_BOOL IsSignatureDict(const CPDF_Dictionary* pDict)
16 { 17 {
17 CPDF_Object* pType = pDict->GetElementValue(FX_BSTRC("Type")); 18 CPDF_Object* pType = pDict->GetElementValue(FX_BSTRC("Type"));
18 if (!pType) { 19 if (!pType) {
19 pType = pDict->GetElementValue(FX_BSTRC("FT")); 20 pType = pDict->GetElementValue(FX_BSTRC("FT"));
20 if (!pType) { 21 if (!pType) {
21 return FALSE; 22 return FALSE;
22 } 23 }
23 } 24 }
24 if (pType->GetString() == FX_BSTRC("Sig")) { 25 if (pType->GetString() == FX_BSTRC("Sig")) {
(...skipping 4618 matching lines...) Expand 10 before | Expand all | Expand 10 after
4643 { 4644 {
4644 FX_INT32 iSize = m_childNode.GetSize(); 4645 FX_INT32 iSize = m_childNode.GetSize();
4645 for (FX_INT32 i = 0; i < iSize; ++i) { 4646 for (FX_INT32 i = 0; i < iSize; ++i) {
4646 CPDF_PageNode *pNode = (CPDF_PageNode*)m_childNode[i]; 4647 CPDF_PageNode *pNode = (CPDF_PageNode*)m_childNode[i];
4647 if (pNode) { 4648 if (pNode) {
4648 delete pNode; 4649 delete pNode;
4649 } 4650 }
4650 } 4651 }
4651 m_childNode.RemoveAll(); 4652 m_childNode.RemoveAll();
4652 } 4653 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698