summaryrefslogtreecommitdiff
path: root/xfa/fxfa/cxfa_ffwidget.h
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2017-08-17 13:53:52 -0700
committerChromium commit bot <commit-bot@chromium.org>2017-08-17 21:22:30 +0000
commit7c9d4c272c57965cb1d407a156bab1110c65e0f6 (patch)
tree1f8cb5b5f21b5f0bdcde82caf3f9a8359477d985 /xfa/fxfa/cxfa_ffwidget.h
parentba1897b238b421e36cb34f223b8b24be2845d413 (diff)
downloadpdfium-7c9d4c272c57965cb1d407a156bab1110c65e0f6.tar.xz
Change CXFA_FFWidget::RenderWidget() to take a const CFX_Matrix&.
Change some related code to take a const CFX_Matrix* since it is not immediately obvious if the matrix can be made into a const-ref. Change-Id: I15c840222b575cc479b1f6f0b6d3b3c0e50d5515 Reviewed-on: https://pdfium-review.googlesource.com/11113 Commit-Queue: Lei Zhang <thestig@chromium.org> Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/cxfa_ffwidget.h')
-rw-r--r--xfa/fxfa/cxfa_ffwidget.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/xfa/fxfa/cxfa_ffwidget.h b/xfa/fxfa/cxfa_ffwidget.h
index d7d8707457..cac229416e 100644
--- a/xfa/fxfa/cxfa_ffwidget.h
+++ b/xfa/fxfa/cxfa_ffwidget.h
@@ -41,7 +41,7 @@ int32_t XFA_StrokeTypeSetLineDash(CXFA_Graphics* pGraphics,
CFX_GraphStateData::LineCap XFA_LineCapToFXGE(int32_t iLineCap);
void XFA_DrawImage(CXFA_Graphics* pGS,
const CFX_RectF& rtImage,
- CFX_Matrix* pMatrix,
+ const CFX_Matrix& matrix,
const CFX_RetainPtr<CFX_DIBitmap>& pDIBitmap,
int32_t iAspect,
int32_t iImageXDpi,
@@ -88,7 +88,7 @@ class CXFA_FFWidget : public CXFA_ContentLayoutItem {
virtual CFX_RectF GetBBox(uint32_t dwStatus, bool bDrawFocus = false);
virtual void RenderWidget(CXFA_Graphics* pGS,
- CFX_Matrix* pMatrix,
+ const CFX_Matrix& matrix,
uint32_t dwStatus);
virtual bool IsLoaded();
virtual bool LoadWidget();
@@ -169,11 +169,11 @@ class CXFA_FFWidget : public CXFA_ContentLayoutItem {
void DrawBorder(CXFA_Graphics* pGS,
CXFA_Box box,
const CFX_RectF& rtBorder,
- CFX_Matrix* pMatrix);
+ const CFX_Matrix* pMatrix);
void DrawBorderWithFlags(CXFA_Graphics* pGS,
CXFA_Box box,
const CFX_RectF& rtBorder,
- CFX_Matrix* pMatrix,
+ const CFX_Matrix* pMatrix,
uint32_t dwFlags);
CFX_RectF GetRectWithoutRotate();