From c7e4c4fe17f5c05671183a47541ea17f3dce75b5 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Fri, 20 Nov 2015 09:45:24 -0800 Subject: Update XFA fpdfsdk to match master R=thestig@chromium.org Review URL: https://codereview.chromium.org/1465663002 . --- fpdfsdk/src/fpdfview.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'fpdfsdk/src/fpdfview.cpp') diff --git a/fpdfsdk/src/fpdfview.cpp b/fpdfsdk/src/fpdfview.cpp index 78ef65f018..8da56dc3b6 100644 --- a/fpdfsdk/src/fpdfview.cpp +++ b/fpdfsdk/src/fpdfview.cpp @@ -192,8 +192,8 @@ DLLEXPORT void STDCALL FPDF_InitLibrary() { FPDF_InitLibraryWithConfig(nullptr); } -DLLEXPORT void STDCALL -FPDF_InitLibraryWithConfig(const FPDF_LIBRARY_CONFIG* cfg) { +DLLEXPORT void STDCALL FPDF_InitLibraryWithConfig( + const FPDF_LIBRARY_CONFIG* cfg) { g_pCodecModule = new CCodec_ModuleMgr(); CFX_GEModule::Create(cfg ? cfg->m_pUserFontPaths : nullptr); @@ -852,9 +852,8 @@ void FPDF_RenderPage_Retail(CRenderContext* pContext, pContext->m_pRenderer = new CPDF_ProgressiveRenderer( pContext->m_pContext, pContext->m_pDevice, pContext->m_pOptions); pContext->m_pRenderer->Start(pause); - if (bNeedToRestore) { + if (bNeedToRestore) pContext->m_pDevice->RestoreState(); - } } DLLEXPORT int STDCALL FPDF_GetPageSizeByIndex(FPDF_DOCUMENT document, -- cgit v1.2.3