summaryrefslogtreecommitdiff
path: root/xfa/fxfa/cxfa_imagerenderer.cpp
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2018-01-17 15:21:41 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-01-17 15:21:41 +0000
commitfaf1578859f24a0e79e995c534eae1abea0e63bb (patch)
tree2b15ef550218422bda8a9b165b7ba2b6eb2b7021 /xfa/fxfa/cxfa_imagerenderer.cpp
parentf82e2d7735d47d4139fe98a26cd955debf113e0c (diff)
downloadpdfium-faf1578859f24a0e79e995c534eae1abea0e63bb.tar.xz
Remove m_bPrint from CXFA_ImageRenderer
Remove the m_bPrint value from CXFA_ImageRenderer which is always false. Change-Id: Id4b1ea3328d1a7627526a503a8cd94a31e3c6091 Reviewed-on: https://pdfium-review.googlesource.com/23054 Reviewed-by: Ryan Harrison <rharrison@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/cxfa_imagerenderer.cpp')
-rw-r--r--xfa/fxfa/cxfa_imagerenderer.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/xfa/fxfa/cxfa_imagerenderer.cpp b/xfa/fxfa/cxfa_imagerenderer.cpp
index 4027a948f3..e5b220b497 100644
--- a/xfa/fxfa/cxfa_imagerenderer.cpp
+++ b/xfa/fxfa/cxfa_imagerenderer.cpp
@@ -40,9 +40,6 @@ bool CXFA_ImageRenderer::Start() {
int dest_height = image_rect.Height();
if ((fabs(m_ImageMatrix.b) >= 0.5f || m_ImageMatrix.a == 0) ||
(fabs(m_ImageMatrix.c) >= 0.5f || m_ImageMatrix.d == 0)) {
- if (m_bPrint && !(m_pDevice->GetRenderCaps() & FXRC_BLEND_MODE))
- return false;
-
RetainPtr<CFX_DIBSource> pDib = m_pDIBSource;
if (m_pDIBSource->HasAlpha() &&
!(m_pDevice->GetRenderCaps() & FXRC_ALPHA_IMAGE) &&
@@ -81,8 +78,6 @@ bool CXFA_ImageRenderer::Start() {
return false;
}
}
- if (m_bPrint && !(m_pDevice->GetRenderCaps() & FXRC_BLEND_MODE))
- return true;
FX_RECT clip_box = m_pDevice->GetClipBox();
FX_RECT dest_rect = clip_box;