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

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

Issue 1439223003: Merge to XFA: Remove relative includes. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: fix merge Created 5 years, 1 month 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 "parser_int.h" 7 #include "parser_int.h"
8 8
9 #include <set> 9 #include <set>
10 #include <utility> 10 #include <utility>
11 #include <vector> 11 #include <vector>
12 12
13 #include "../fpdf_page/pageint.h"
14 #include "core/include/fpdfapi/fpdf_module.h" 13 #include "core/include/fpdfapi/fpdf_module.h"
15 #include "core/include/fpdfapi/fpdf_page.h" 14 #include "core/include/fpdfapi/fpdf_page.h"
16 #include "core/include/fpdfapi/fpdf_parser.h" 15 #include "core/include/fpdfapi/fpdf_parser.h"
17 #include "core/include/fxcrt/fx_safe_types.h" 16 #include "core/include/fxcrt/fx_safe_types.h"
17 #include "core/src/fpdfapi/fpdf_page/pageint.h"
18 #include "third_party/base/nonstd_unique_ptr.h" 18 #include "third_party/base/nonstd_unique_ptr.h"
19 #include "third_party/base/stl_util.h" 19 #include "third_party/base/stl_util.h"
20 20
21 namespace { 21 namespace {
22 22
23 struct SearchTagRecord { 23 struct SearchTagRecord {
24 const uint8_t* m_pTag; 24 const uint8_t* m_pTag;
25 FX_DWORD m_Len; 25 FX_DWORD m_Len;
26 FX_DWORD m_Offset; 26 FX_DWORD m_Offset;
27 }; 27 };
(...skipping 4918 matching lines...) Expand 10 before | Expand all | Expand 10 after
4946 if (!m_pLinearizedDict) 4946 if (!m_pLinearizedDict)
4947 return -1; 4947 return -1;
4948 CPDF_Array* pRange = m_pLinearizedDict->GetArray(FX_BSTRC("H")); 4948 CPDF_Array* pRange = m_pLinearizedDict->GetArray(FX_BSTRC("H"));
4949 if (!pRange) 4949 if (!pRange)
4950 return -1; 4950 return -1;
4951 CPDF_Object* pStreamLen = pRange->GetElementValue(1); 4951 CPDF_Object* pStreamLen = pRange->GetElementValue(1);
4952 if (!pStreamLen) 4952 if (!pStreamLen)
4953 return -1; 4953 return -1;
4954 return pStreamLen->GetInteger(); 4954 return pStreamLen->GetInteger();
4955 } 4955 }
OLDNEW
« no previous file with comments | « core/src/fpdfapi/fpdf_parser/fpdf_parser_decode_embeddertest.cpp ('k') | core/src/fpdfapi/fpdf_render/fpdf_render.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698