diff options
author | Lei Zhang <thestig@chromium.org> | 2017-05-18 17:01:34 -0700 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-05-19 00:13:45 +0000 |
commit | 6d69108d84b144716be15e73b719dc69cb72177c (patch) | |
tree | 2f61324149892b5c5a7f11336b509f7860ff1615 /core/fpdfapi/render/cpdf_imagerenderer.cpp | |
parent | e30f07a3278669c6d62c4e857c3d5402cb7a04d3 (diff) | |
download | pdfium-6d69108d84b144716be15e73b719dc69cb72177c.tar.xz |
Remove image dimension params that are never used.
Change-Id: Ib219e23efdcb128772c4c3138531363af53780a1
Reviewed-on: https://pdfium-review.googlesource.com/5652
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core/fpdfapi/render/cpdf_imagerenderer.cpp')
-rw-r--r-- | core/fpdfapi/render/cpdf_imagerenderer.cpp | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/core/fpdfapi/render/cpdf_imagerenderer.cpp b/core/fpdfapi/render/cpdf_imagerenderer.cpp index 12c354076b..22eb32b4e9 100644 --- a/core/fpdfapi/render/cpdf_imagerenderer.cpp +++ b/core/fpdfapi/render/cpdf_imagerenderer.cpp @@ -59,14 +59,10 @@ bool CPDF_ImageRenderer::StartLoadDIBSource() { if (!image_rect.Valid()) return false; - int dest_width = - m_ImageMatrix.a >= 0 ? image_rect.Width() : -image_rect.Width(); - int dest_height = - m_ImageMatrix.d <= 0 ? image_rect.Height() : -image_rect.Height(); - if (m_Loader.Start( - m_pImageObject, m_pRenderStatus->m_pContext->GetPageCache(), m_bStdCS, - m_pRenderStatus->m_GroupFamily, m_pRenderStatus->m_bLoadMask, - m_pRenderStatus, dest_width, dest_height)) { + if (m_Loader.Start(m_pImageObject, + m_pRenderStatus->m_pContext->GetPageCache(), m_bStdCS, + m_pRenderStatus->m_GroupFamily, + m_pRenderStatus->m_bLoadMask, m_pRenderStatus)) { m_Status = 4; return true; } @@ -284,7 +280,8 @@ bool CPDF_ImageRenderer::DrawPatternImage(const CFX_Matrix* pObj2Device) { &m_pRenderStatus->m_Options, 0, m_pRenderStatus->m_bDropObjects, nullptr, true); CFX_Matrix patternDevice = *pObj2Device; - patternDevice.Translate((float)-rect.left, (float)-rect.top); + patternDevice.Translate(static_cast<float>(-rect.left), + static_cast<float>(-rect.top)); if (CPDF_TilingPattern* pTilingPattern = m_pPattern->AsTilingPattern()) { bitmap_render.DrawTilingPattern(pTilingPattern, m_pImageObject, &patternDevice, false); |