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

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

Issue 1707923002: Expand all paths to be based off pdfium/ directory (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Sort headers Created 4 years, 10 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 8
9 #include "core/include/fpdfdoc/fpdf_doc.h" 9 #include "core/include/fpdfdoc/fpdf_doc.h"
10 #include "doc_utils.h" 10 #include "core/src/fpdfdoc/doc_utils.h"
11 11
12 static const int FPDFDOC_UTILS_MAXRECURSION = 32; 12 static const int FPDFDOC_UTILS_MAXRECURSION = 32;
13 13
14 CFX_WideString GetFullName(CPDF_Dictionary* pFieldDict) { 14 CFX_WideString GetFullName(CPDF_Dictionary* pFieldDict) {
15 CFX_WideString full_name; 15 CFX_WideString full_name;
16 CPDF_Dictionary* pLevel = pFieldDict; 16 CPDF_Dictionary* pLevel = pFieldDict;
17 while (pLevel) { 17 while (pLevel) {
18 CFX_WideString short_name = pLevel->GetUnicodeTextBy("T"); 18 CFX_WideString short_name = pLevel->GetUnicodeTextBy("T");
19 if (short_name != L"") { 19 if (short_name != L"") {
20 if (full_name == L"") { 20 if (full_name == L"") {
(...skipping 672 matching lines...) Expand 10 before | Expand all | Expand 10 after
693 CPDF_Object* pAttr = pFieldDict->GetElementValue(name); 693 CPDF_Object* pAttr = pFieldDict->GetElementValue(name);
694 if (pAttr) { 694 if (pAttr) {
695 return pAttr; 695 return pAttr;
696 } 696 }
697 CPDF_Dictionary* pParent = pFieldDict->GetDictBy("Parent"); 697 CPDF_Dictionary* pParent = pFieldDict->GetDictBy("Parent");
698 if (!pParent) { 698 if (!pParent) {
699 return NULL; 699 return NULL;
700 } 700 }
701 return FPDF_GetFieldAttr(pParent, name, nLevel + 1); 701 return FPDF_GetFieldAttr(pParent, name, nLevel + 1);
702 } 702 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698