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

Side by Side Diff: fpdfsdk/fpdfxfa/cpdfxfa_document.cpp

Issue 2412523002: Cleanup env variable names (Closed)
Patch Set: Fix spelling Created 4 years, 2 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 | « fpdfsdk/fpdfxfa/cpdfxfa_app.cpp ('k') | fpdfsdk/fpdfxfa/cxfa_fwladaptertimermgr.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 "fpdfsdk/fpdfxfa/cpdfxfa_document.h" 7 #include "fpdfsdk/fpdfxfa/cpdfxfa_document.h"
8 8
9 #include "core/fpdfapi/parser/cpdf_document.h" 9 #include "core/fpdfapi/parser/cpdf_document.h"
10 #include "fpdfsdk/cpdfsdk_formfillenvironment.h" 10 #include "fpdfsdk/cpdfsdk_formfillenvironment.h"
(...skipping 26 matching lines...) Expand all
37 m_pApp(pProvider), 37 m_pApp(pProvider),
38 m_nLoadStatus(FXFA_LOADSTATUS_PRELOAD), 38 m_nLoadStatus(FXFA_LOADSTATUS_PRELOAD),
39 m_nPageCount(0), 39 m_nPageCount(0),
40 m_DocEnv(this) {} 40 m_DocEnv(this) {}
41 41
42 CPDFXFA_Document::~CPDFXFA_Document() { 42 CPDFXFA_Document::~CPDFXFA_Document() {
43 m_nLoadStatus = FXFA_LOADSTATUS_CLOSING; 43 m_nLoadStatus = FXFA_LOADSTATUS_CLOSING;
44 44
45 if (m_pFormFillEnv) { 45 if (m_pFormFillEnv) {
46 m_pFormFillEnv->ClearAllFocusedAnnots(); 46 m_pFormFillEnv->ClearAllFocusedAnnots();
47 // Once we're deleted the SDKDocument will point at a bad underlying 47 // Once we're deleted the FormFillEnvironment will point at a bad underlying
48 // doc so we need to reset it ... 48 // doc so we need to reset it ...
49 m_pFormFillEnv->ResetXFADocument(); 49 m_pFormFillEnv->ResetXFADocument();
50 m_pFormFillEnv = nullptr; 50 m_pFormFillEnv = nullptr;
51 } 51 }
52 52
53 if (m_pXFADoc) { 53 if (m_pXFADoc) {
54 CXFA_FFApp* pApp = m_pApp->GetXFAApp(); 54 CXFA_FFApp* pApp = m_pApp->GetXFAApp();
55 if (pApp) { 55 if (pApp) {
56 CXFA_FFDocHandler* pDocHandler = pApp->GetDocHandler(); 56 CXFA_FFDocHandler* pDocHandler = pApp->GetDocHandler();
57 if (pDocHandler) 57 if (pDocHandler)
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 } 196 }
197 197
198 void CPDFXFA_Document::RemovePage(CPDFXFA_Page* page) { 198 void CPDFXFA_Document::RemovePage(CPDFXFA_Page* page) {
199 m_XFAPageList.SetAt(page->GetPageIndex(), nullptr); 199 m_XFAPageList.SetAt(page->GetPageIndex(), nullptr);
200 } 200 }
201 201
202 void CPDFXFA_Document::ClearChangeMark() { 202 void CPDFXFA_Document::ClearChangeMark() {
203 if (m_pFormFillEnv) 203 if (m_pFormFillEnv)
204 m_pFormFillEnv->ClearChangeMark(); 204 m_pFormFillEnv->ClearChangeMark();
205 } 205 }
OLDNEW
« no previous file with comments | « fpdfsdk/fpdfxfa/cpdfxfa_app.cpp ('k') | fpdfsdk/fpdfxfa/cxfa_fwladaptertimermgr.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698