summaryrefslogtreecommitdiff
path: root/core/fpdfapi/page/cpdf_page.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/fpdfapi/page/cpdf_page.cpp')
-rw-r--r--core/fpdfapi/page/cpdf_page.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/core/fpdfapi/page/cpdf_page.cpp b/core/fpdfapi/page/cpdf_page.cpp
index 314b8acbaa..496ed7cc58 100644
--- a/core/fpdfapi/page/cpdf_page.cpp
+++ b/core/fpdfapi/page/cpdf_page.cpp
@@ -23,12 +23,12 @@
CPDF_Page::CPDF_Page(CPDF_Document* pDocument,
CPDF_Dictionary* pPageDict,
bool bPageCache)
- : m_PageWidth(100),
+ : CPDF_PageObjectHolder(pDocument, pPageDict),
+ m_PageWidth(100),
m_PageHeight(100),
- m_pView(nullptr),
- m_pPageRender(bPageCache ? new CPDF_PageRenderCache(this) : nullptr) {
- m_pFormDict = pPageDict;
- m_pDocument = pDocument;
+ m_pView(nullptr) {
+ if (bPageCache)
+ m_pPageRender = pdfium::MakeUnique<CPDF_PageRenderCache>(this);
if (!pPageDict)
return;