diff options
author | Henrique Nakashima <hnakashima@chromium.org> | 2018-05-02 15:31:32 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-05-02 15:31:32 +0000 |
commit | d3b0f7cc78e6a143e00e5eb653b3e7c918054426 (patch) | |
tree | 7d453e8753ecf8e402232271c0a3521cdf512e4a /xfa/fxfa/cxfa_ffimage.cpp | |
parent | 28cad1534619d55820593baed0b6d6f3cbf767eb (diff) | |
download | pdfium-d3b0f7cc78e6a143e00e5eb653b3e7c918054426.tar.xz |
Remove int out params from reference to pointer in CXFA_Node.
Return a CFX_Size instead.
Change-Id: I3bef1093fbc887237aa69dc942f878af27b4e8e9
Reviewed-on: https://pdfium-review.googlesource.com/31911
Commit-Queue: Henrique Nakashima <hnakashima@chromium.org>
Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'xfa/fxfa/cxfa_ffimage.cpp')
-rw-r--r-- | xfa/fxfa/cxfa_ffimage.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/xfa/fxfa/cxfa_ffimage.cpp b/xfa/fxfa/cxfa_ffimage.cpp index a80b19a337..15916de456 100644 --- a/xfa/fxfa/cxfa_ffimage.cpp +++ b/xfa/fxfa/cxfa_ffimage.cpp @@ -65,14 +65,11 @@ void CXFA_FFImage::RenderWidget(CXFA_Graphics* pGS, iVertAlign = para->GetVerticalAlign(); } - int32_t iImageXDpi = 0; - int32_t iImageYDpi = 0; - m_pNode->GetImageDpi(iImageXDpi, iImageYDpi); - auto* value = m_pNode->GetFormValueIfExists(); CXFA_Image* image = value ? value->GetImageIfExists() : nullptr; if (image) { + CFX_Size dpi = m_pNode->GetImageDpi(); XFA_DrawImage(pGS, rtImage, mtRotate, pDIBitmap, image->GetAspect(), - iImageXDpi, iImageYDpi, iHorzAlign, iVertAlign); + dpi.width, dpi.height, iHorzAlign, iVertAlign); } } |