From 41846a0fcc7d98476a18ec6c97778ead58069d99 Mon Sep 17 00:00:00 2001 From: thestig Date: Thu, 26 May 2016 10:45:30 -0700 Subject: Remove default argument from RestoreState() methods. Review-Url: https://codereview.chromium.org/2009803003 --- xfa/fde/fde_gedevice.cpp | 2 +- xfa/fxfa/app/xfa_ffwidget.cpp | 2 +- xfa/fxgraphics/cfx_graphics.cpp | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'xfa') diff --git a/xfa/fde/fde_gedevice.cpp b/xfa/fde/fde_gedevice.cpp index f99dc6c201..9c6cde3dbe 100644 --- a/xfa/fde/fde_gedevice.cpp +++ b/xfa/fde/fde_gedevice.cpp @@ -41,7 +41,7 @@ FDE_HDEVICESTATE CFDE_RenderDevice::SaveState() { return NULL; } void CFDE_RenderDevice::RestoreState(FDE_HDEVICESTATE hState) { - m_pDevice->RestoreState(); + m_pDevice->RestoreState(false); const FX_RECT& rt = m_pDevice->GetClipBox(); m_rtClip.Set((FX_FLOAT)rt.left, (FX_FLOAT)rt.top, (FX_FLOAT)rt.Width(), (FX_FLOAT)rt.Height()); diff --git a/xfa/fxfa/app/xfa_ffwidget.cpp b/xfa/fxfa/app/xfa_ffwidget.cpp index 8ce583a782..957a31f584 100644 --- a/xfa/fxfa/app/xfa_ffwidget.cpp +++ b/xfa/fxfa/app/xfa_ffwidget.cpp @@ -835,7 +835,7 @@ void XFA_DrawImage(CFX_Graphics* pGS, while (bRet) { bRet = imageRender.Continue(NULL); } - pRenderDevice->RestoreState(); + pRenderDevice->RestoreState(false); } static const uint8_t g_inv_base64[128] = { diff --git a/xfa/fxgraphics/cfx_graphics.cpp b/xfa/fxgraphics/cfx_graphics.cpp index 179e470e90..8de0def44f 100644 --- a/xfa/fxgraphics/cfx_graphics.cpp +++ b/xfa/fxgraphics/cfx_graphics.cpp @@ -639,7 +639,7 @@ FWL_Error CFX_Graphics::SaveGraphState() { FWL_Error CFX_Graphics::RestoreGraphState() { if (m_type == FX_CONTEXT_Device && m_renderDevice) { - m_renderDevice->RestoreState(); + m_renderDevice->RestoreState(false); int32_t size = m_infoStack.GetSize(); if (size <= 0) { return FWL_Error::IntermediateValueInvalid; @@ -1356,7 +1356,7 @@ FWL_Error CFX_Graphics::FillPathWithPattern(CFX_Path* path, m_renderDevice->SetClip_PathFill(path->GetPathData(), (CFX_Matrix*)matrix, fillMode); SetDIBitsWithMatrix(&bmp, &pattern->m_matrix); - m_renderDevice->RestoreState(); + m_renderDevice->RestoreState(false); return FWL_Error::Succeeded; } @@ -1477,7 +1477,7 @@ FWL_Error CFX_Graphics::FillPathWithShading(CFX_Path* path, m_renderDevice->SetClip_PathFill(path->GetPathData(), (CFX_Matrix*)matrix, fillMode); SetDIBitsWithMatrix(&bmp, matrix); - m_renderDevice->RestoreState(); + m_renderDevice->RestoreState(false); } return result ? FWL_Error::Succeeded : FWL_Error::PropertyInvalid; } -- cgit v1.2.3