diff options
author | Tom Sepez <tsepez@chromium.org> | 2015-12-17 13:41:13 -0800 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2015-12-17 13:41:13 -0800 |
commit | 979ddd8e4d331b330360f321b7b0c1acaead6445 (patch) | |
tree | 473af0a917597b08b66c4154cfd4c8e5fdd0a923 /fpdfsdk/src | |
parent | 1871821653de9f4b1706d726f4d318cf739e55af (diff) | |
download | pdfium-979ddd8e4d331b330360f321b7b0c1acaead6445.tar.xz |
Merge to XFA: Tidy CPDF_RenderContext
Original Review URL: https://codereview.chromium.org/1536623004 .
(cherry picked from commit 761660c4074269ac806d06c9bef70e4e9fb0eb29)
TBR=thestig@chromium.org
Review URL: https://codereview.chromium.org/1531423002 .
Diffstat (limited to 'fpdfsdk/src')
-rw-r--r-- | fpdfsdk/src/fpdfview.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fpdfsdk/src/fpdfview.cpp b/fpdfsdk/src/fpdfview.cpp index b817ff90aa..a7c38bcdf7 100644 --- a/fpdfsdk/src/fpdfview.cpp +++ b/fpdfsdk/src/fpdfview.cpp @@ -948,8 +948,7 @@ void FPDF_RenderPage_Retail(CRenderContext* pContext, pContext->m_pDevice->SaveState(); pContext->m_pDevice->SetClip_Rect(&clip); - pContext->m_pContext = new CPDF_RenderContext; - pContext->m_pContext->Create(pPage); + pContext->m_pContext = new CPDF_RenderContext(pPage); pContext->m_pContext->AppendObjectList(pPage, &matrix); if (flags & FPDF_ANNOT) { |