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

Unified Diff: fpdfsdk/cpdfsdk_document.cpp

Issue 2400673002: Convert CPDFSDK_PageView to have a CPDFSDK_FormFillEnvironment (Closed)
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: fpdfsdk/cpdfsdk_document.cpp
diff --git a/fpdfsdk/cpdfsdk_document.cpp b/fpdfsdk/cpdfsdk_document.cpp
index 5966f0e51b0ab0cc0efcb882f1f9f55cd0d39360..22f501e7c5ea67bddc9e425442155e7a914438e7 100644
--- a/fpdfsdk/cpdfsdk_document.cpp
+++ b/fpdfsdk/cpdfsdk_document.cpp
@@ -63,7 +63,8 @@ CPDFSDK_PageView* CPDFSDK_Document::GetPageView(
if (!ReNew)
return nullptr;
- CPDFSDK_PageView* pPageView = new CPDFSDK_PageView(this, pUnderlyingPage);
+ CPDFSDK_PageView* pPageView =
+ new CPDFSDK_PageView(this->GetEnv(), pUnderlyingPage);
Tom Sepez 2016/10/06 18:46:28 nit: just GetEnv()
dsinclair 2016/10/06 19:32:54 Done.
m_pageMap[pUnderlyingPage] = pPageView;
// Delay to load all the annotations, to avoid endless loop.
pPageView->LoadFXAnnots();

Powered by Google App Engine
This is Rietveld 408576698