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

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

Issue 1425093003: Clean up CPDF_AnnotList. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: revert error 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
« no previous file with comments | « core/src/fpdfdoc/doc_annot.cpp ('k') | fpdfsdk/include/fsdk_baseform.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 "../../include/fpdfdoc/fpdf_doc.h" 7 #include "../../include/fpdfdoc/fpdf_doc.h"
8 #include "doc_utils.h" 8 #include "doc_utils.h"
9 9
10 const int nMaxRecursion = 32; 10 const int nMaxRecursion = 32;
(...skipping 800 matching lines...) Expand 10 before | Expand all | Expand 10 after
811 continue; 811 continue;
812 812
813 if (z_order) 813 if (z_order)
814 *z_order = annot_index; 814 *z_order = annot_index;
815 return pControl; 815 return pControl;
816 } 816 }
817 return nullptr; 817 return nullptr;
818 } 818 }
819 819
820 CPDF_FormControl* CPDF_InterForm::GetControlByDict( 820 CPDF_FormControl* CPDF_InterForm::GetControlByDict(
821 CPDF_Dictionary* pWidgetDict) const { 821 const CPDF_Dictionary* pWidgetDict) const {
822 const auto it = m_ControlMap.find(pWidgetDict); 822 const auto it = m_ControlMap.find(pWidgetDict);
823 return it != m_ControlMap.end() ? it->second : nullptr; 823 return it != m_ControlMap.end() ? it->second : nullptr;
824 } 824 }
825 825
826 FX_BOOL CPDF_InterForm::NeedConstructAP() { 826 FX_BOOL CPDF_InterForm::NeedConstructAP() {
827 if (m_pFormDict == NULL) { 827 if (m_pFormDict == NULL) {
828 return FALSE; 828 return FALSE;
829 } 829 }
830 return m_pFormDict->GetBoolean("NeedAppearances"); 830 return m_pFormDict->GetBoolean("NeedAppearances");
831 } 831 }
(...skipping 538 matching lines...) Expand 10 before | Expand all | Expand 10 after
1370 FDF_ImportField(pField, L"", bNotify); 1370 FDF_ImportField(pField, L"", bNotify);
1371 } 1371 }
1372 if (bNotify && m_pFormNotify != NULL) { 1372 if (bNotify && m_pFormNotify != NULL) {
1373 m_pFormNotify->AfterFormImportData(this); 1373 m_pFormNotify->AfterFormImportData(this);
1374 } 1374 }
1375 return TRUE; 1375 return TRUE;
1376 } 1376 }
1377 void CPDF_InterForm::SetFormNotify(const CPDF_FormNotify* pNotify) { 1377 void CPDF_InterForm::SetFormNotify(const CPDF_FormNotify* pNotify) {
1378 m_pFormNotify = (CPDF_FormNotify*)pNotify; 1378 m_pFormNotify = (CPDF_FormNotify*)pNotify;
1379 } 1379 }
OLDNEW
« no previous file with comments | « core/src/fpdfdoc/doc_annot.cpp ('k') | fpdfsdk/include/fsdk_baseform.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698