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

Side by Side Diff: core/src/fpdfdoc/doc_utils.cpp

Issue 1776913007: Split fpdf_parser_objects.cpp into per-class .cpp/.h files. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 9 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 <algorithm> 7 #include <algorithm>
8 #include <vector> 8 #include <vector>
9 9
10 #include "core/include/fpdfapi/cpdf_array.h"
10 #include "core/include/fpdfapi/cpdf_document.h" 11 #include "core/include/fpdfapi/cpdf_document.h"
11 #include "core/include/fpdfapi/cpdf_simple_parser.h" 12 #include "core/include/fpdfapi/cpdf_simple_parser.h"
12 #include "core/include/fpdfdoc/fpdf_doc.h" 13 #include "core/include/fpdfdoc/fpdf_doc.h"
13 #include "core/src/fpdfdoc/doc_utils.h" 14 #include "core/src/fpdfdoc/doc_utils.h"
14 15
15 namespace { 16 namespace {
16 17
17 const int FPDFDOC_UTILS_MAXRECURSION = 32; 18 const int FPDFDOC_UTILS_MAXRECURSION = 32;
18 19
19 CPDF_Object* SearchNumberNode(const CPDF_Dictionary* pNode, int num) { 20 CPDF_Object* SearchNumberNode(const CPDF_Dictionary* pNode, int num) {
(...skipping 723 matching lines...) Expand 10 before | Expand all | Expand 10 after
743 CPDF_Object* pAttr = pFieldDict->GetElementValue(name); 744 CPDF_Object* pAttr = pFieldDict->GetElementValue(name);
744 if (pAttr) { 745 if (pAttr) {
745 return pAttr; 746 return pAttr;
746 } 747 }
747 CPDF_Dictionary* pParent = pFieldDict->GetDictBy("Parent"); 748 CPDF_Dictionary* pParent = pFieldDict->GetDictBy("Parent");
748 if (!pParent) { 749 if (!pParent) {
749 return NULL; 750 return NULL;
750 } 751 }
751 return FPDF_GetFieldAttr(pParent, name, nLevel + 1); 752 return FPDF_GetFieldAttr(pParent, name, nLevel + 1);
752 } 753 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698