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

Side by Side Diff: fpdfsdk/fpdfview.cpp

Issue 2009803003: Remove default argument from RestoreState() methods. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: rebase Created 4 years, 6 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 unified diff | Download patch
« no previous file with comments | « fpdfsdk/fpdfformfill.cpp ('k') | fpdfsdk/fxedit/fxet_pageobjs.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #include "public/fpdfview.h" 7 #include "public/fpdfview.h"
8 8
9 #include <memory> 9 #include <memory>
10 10
(...skipping 894 matching lines...) Expand 10 before | Expand all | Expand 10 after
905 pContext->m_pAnnots = new CPDF_AnnotList(pPage); 905 pContext->m_pAnnots = new CPDF_AnnotList(pPage);
906 FX_BOOL bPrinting = pContext->m_pDevice->GetDeviceClass() != FXDC_DISPLAY; 906 FX_BOOL bPrinting = pContext->m_pDevice->GetDeviceClass() != FXDC_DISPLAY;
907 pContext->m_pAnnots->DisplayAnnots(pPage, pContext->m_pContext, bPrinting, 907 pContext->m_pAnnots->DisplayAnnots(pPage, pContext->m_pContext, bPrinting,
908 &matrix, TRUE, NULL); 908 &matrix, TRUE, NULL);
909 } 909 }
910 910
911 pContext->m_pRenderer = new CPDF_ProgressiveRenderer( 911 pContext->m_pRenderer = new CPDF_ProgressiveRenderer(
912 pContext->m_pContext, pContext->m_pDevice, pContext->m_pOptions); 912 pContext->m_pContext, pContext->m_pDevice, pContext->m_pOptions);
913 pContext->m_pRenderer->Start(pause); 913 pContext->m_pRenderer->Start(pause);
914 if (bNeedToRestore) 914 if (bNeedToRestore)
915 pContext->m_pDevice->RestoreState(); 915 pContext->m_pDevice->RestoreState(false);
916 } 916 }
917 917
918 DLLEXPORT int STDCALL FPDF_GetPageSizeByIndex(FPDF_DOCUMENT document, 918 DLLEXPORT int STDCALL FPDF_GetPageSizeByIndex(FPDF_DOCUMENT document,
919 int page_index, 919 int page_index,
920 double* width, 920 double* width,
921 double* height) { 921 double* height) {
922 UnderlyingDocumentType* pDoc = UnderlyingFromFPDFDocument(document); 922 UnderlyingDocumentType* pDoc = UnderlyingFromFPDFDocument(document);
923 if (!pDoc) 923 if (!pDoc)
924 return FALSE; 924 return FALSE;
925 925
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
1139 if (!buffer) { 1139 if (!buffer) {
1140 *buflen = len; 1140 *buflen = len;
1141 } else if (*buflen >= len) { 1141 } else if (*buflen >= len) {
1142 memcpy(buffer, utf16Name.c_str(), len); 1142 memcpy(buffer, utf16Name.c_str(), len);
1143 *buflen = len; 1143 *buflen = len;
1144 } else { 1144 } else {
1145 *buflen = -1; 1145 *buflen = -1;
1146 } 1146 }
1147 return (FPDF_DEST)pDestObj; 1147 return (FPDF_DEST)pDestObj;
1148 } 1148 }
OLDNEW
« no previous file with comments | « fpdfsdk/fpdfformfill.cpp ('k') | fpdfsdk/fxedit/fxet_pageobjs.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698