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

Unified Diff: fpdfsdk/fpdfxfa/cpdfxfa_docenvironment.cpp

Issue 2354933002: Rename CPDFXFA_Document::GetPageCount (Closed)
Patch Set: Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: fpdfsdk/fpdfxfa/cpdfxfa_docenvironment.cpp
diff --git a/fpdfsdk/fpdfxfa/cpdfxfa_docenvironment.cpp b/fpdfsdk/fpdfxfa/cpdfxfa_docenvironment.cpp
index 7ee3cbb85943d2ead27a3859130b23dc89f0a1f3..b71a38e1c5e68b4ebc5d1061ce5d0b2ed872469b 100644
--- a/fpdfsdk/fpdfxfa/cpdfxfa_docenvironment.cpp
+++ b/fpdfsdk/fpdfxfa/cpdfxfa_docenvironment.cpp
@@ -267,7 +267,7 @@ void CPDFXFA_DocEnvironment::PageViewEvent(CXFA_FFPageView* pPageView,
XFA_PAGEVIEWEVENT_StopLayout != dwFlags)
return;
- int nNewCount = m_pDocument->GetPageCount();
+ int nNewCount = m_pDocument->GetXFAPageCount();
if (nNewCount == m_pDocument->GetOriginalPageCount())
return;
@@ -330,7 +330,7 @@ void CPDFXFA_DocEnvironment::WidgetPreRemove(CXFA_FFWidget* hWidget,
int32_t CPDFXFA_DocEnvironment::CountPages(CXFA_FFDoc* hDoc) {
if (hDoc == m_pDocument->GetXFADoc() && m_pDocument->GetSDKDoc())
- return m_pDocument->GetPageCount();
+ return m_pDocument->GetXFAPageCount();
return 0;
}

Powered by Google App Engine
This is Rietveld 408576698