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/fpdfdoc/doc_utils.cpp

Issue 1868533002: Move core/include/fxge to core/fxge/include. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « core/fpdfdoc/doc_annot.cpp ('k') | core/fpdfdoc/include/cpvt_wordprops.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/fpdfapi/fpdf_font/include/cpdf_font.h" 10 #include "core/fpdfapi/fpdf_font/include/cpdf_font.h"
11 #include "core/fpdfapi/fpdf_parser/include/cpdf_array.h" 11 #include "core/fpdfapi/fpdf_parser/include/cpdf_array.h"
12 #include "core/fpdfapi/fpdf_parser/include/cpdf_document.h" 12 #include "core/fpdfapi/fpdf_parser/include/cpdf_document.h"
13 #include "core/fpdfapi/fpdf_parser/include/cpdf_simple_parser.h" 13 #include "core/fpdfapi/fpdf_parser/include/cpdf_simple_parser.h"
14 #include "core/fpdfdoc/doc_utils.h" 14 #include "core/fpdfdoc/doc_utils.h"
15 #include "core/fxge/include/fx_font.h"
15 #include "core/include/fpdfdoc/fpdf_doc.h" 16 #include "core/include/fpdfdoc/fpdf_doc.h"
16 #include "core/include/fxge/fx_font.h"
17 17
18 namespace { 18 namespace {
19 19
20 const int FPDFDOC_UTILS_MAXRECURSION = 32; 20 const int FPDFDOC_UTILS_MAXRECURSION = 32;
21 21
22 CPDF_Object* SearchNumberNode(const CPDF_Dictionary* pNode, int num) { 22 CPDF_Object* SearchNumberNode(const CPDF_Dictionary* pNode, int num) {
23 CPDF_Array* pLimits = pNode->GetArrayBy("Limits"); 23 CPDF_Array* pLimits = pNode->GetArrayBy("Limits");
24 if (pLimits && 24 if (pLimits &&
25 (num < pLimits->GetIntegerAt(0) || num > pLimits->GetIntegerAt(1))) { 25 (num < pLimits->GetIntegerAt(0) || num > pLimits->GetIntegerAt(1))) {
26 return NULL; 26 return NULL;
(...skipping 720 matching lines...) Expand 10 before | Expand all | Expand 10 after
747 CPDF_Object* pAttr = pFieldDict->GetDirectObjectBy(name); 747 CPDF_Object* pAttr = pFieldDict->GetDirectObjectBy(name);
748 if (pAttr) { 748 if (pAttr) {
749 return pAttr; 749 return pAttr;
750 } 750 }
751 CPDF_Dictionary* pParent = pFieldDict->GetDictBy("Parent"); 751 CPDF_Dictionary* pParent = pFieldDict->GetDictBy("Parent");
752 if (!pParent) { 752 if (!pParent) {
753 return NULL; 753 return NULL;
754 } 754 }
755 return FPDF_GetFieldAttr(pParent, name, nLevel + 1); 755 return FPDF_GetFieldAttr(pParent, name, nLevel + 1);
756 } 756 }
OLDNEW
« no previous file with comments | « core/fpdfdoc/doc_annot.cpp ('k') | core/fpdfdoc/include/cpvt_wordprops.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698