| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |