| 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 <set> | 7 #include <set> |
| 8 #include <utility> | 8 #include <utility> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "../../../../third_party/base/nonstd_unique_ptr.h" | |
| 12 #include "../../../../third_party/base/stl_util.h" | |
| 13 #include "../../../include/fpdfapi/fpdf_module.h" | 11 #include "../../../include/fpdfapi/fpdf_module.h" |
| 14 #include "../../../include/fpdfapi/fpdf_page.h" | 12 #include "../../../include/fpdfapi/fpdf_page.h" |
| 15 #include "../../../include/fpdfapi/fpdf_parser.h" | 13 #include "../../../include/fpdfapi/fpdf_parser.h" |
| 16 #include "../../../include/fxcrt/fx_safe_types.h" | 14 #include "../../../include/fxcrt/fx_safe_types.h" |
| 17 #include "../fpdf_page/pageint.h" | 15 #include "../fpdf_page/pageint.h" |
| 16 #include "third_party/base/nonstd_unique_ptr.h" |
| 17 #include "third_party/base/stl_util.h" |
| 18 | 18 |
| 19 namespace { | 19 namespace { |
| 20 | 20 |
| 21 struct SearchTagRecord { | 21 struct SearchTagRecord { |
| 22 const uint8_t* m_pTag; | 22 const uint8_t* m_pTag; |
| 23 FX_DWORD m_Len; | 23 FX_DWORD m_Len; |
| 24 FX_DWORD m_Offset; | 24 FX_DWORD m_Offset; |
| 25 }; | 25 }; |
| 26 | 26 |
| 27 int CompareFileSize(const void* p1, const void* p2) { | 27 int CompareFileSize(const void* p1, const void* p2) { |
| (...skipping 4499 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4527 return FALSE; | 4527 return FALSE; |
| 4528 } | 4528 } |
| 4529 CPDF_PageNode::~CPDF_PageNode() { | 4529 CPDF_PageNode::~CPDF_PageNode() { |
| 4530 int32_t iSize = m_childNode.GetSize(); | 4530 int32_t iSize = m_childNode.GetSize(); |
| 4531 for (int32_t i = 0; i < iSize; ++i) { | 4531 for (int32_t i = 0; i < iSize; ++i) { |
| 4532 CPDF_PageNode* pNode = (CPDF_PageNode*)m_childNode[i]; | 4532 CPDF_PageNode* pNode = (CPDF_PageNode*)m_childNode[i]; |
| 4533 delete pNode; | 4533 delete pNode; |
| 4534 } | 4534 } |
| 4535 m_childNode.RemoveAll(); | 4535 m_childNode.RemoveAll(); |
| 4536 } | 4536 } |
| OLD | NEW |