diff options
author | thestig <thestig@chromium.org> | 2016-05-26 10:45:30 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-05-26 10:45:30 -0700 |
commit | 41846a0fcc7d98476a18ec6c97778ead58069d99 (patch) | |
tree | a91f1273a03ca027c066a571b41f590896404574 /xfa/fxgraphics/cfx_graphics.cpp | |
parent | e9885e77a7daf7a8d45eaf0290a1ea5f208c24c6 (diff) | |
download | pdfium-41846a0fcc7d98476a18ec6c97778ead58069d99.tar.xz |
Remove default argument from RestoreState() methods.
Review-Url: https://codereview.chromium.org/2009803003
Diffstat (limited to 'xfa/fxgraphics/cfx_graphics.cpp')
-rw-r--r-- | xfa/fxgraphics/cfx_graphics.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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; } |