diff options
author | Lei Zhang <thestig@chromium.org> | 2017-08-28 11:34:16 -0700 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-08-28 19:16:33 +0000 |
commit | 2b6e2a7c92a8c2756364a40a22e6f91b910fc514 (patch) | |
tree | 46e43162696ae24be039603cce113abb0167da41 /fpdfsdk/formfiller/cffl_button.cpp | |
parent | 959279182e2ef325aa2a2a8a45ec4143916ef17c (diff) | |
download | pdfium-2b6e2a7c92a8c2756364a40a22e6f91b910fc514.tar.xz |
Pass more const CFX_Matrix* params in CFFL_FormFiller.
Remove some useless overrides.
Change-Id: Icf4d8bfcca6358ef3f59f768c2d60759d4b05243
Reviewed-on: https://pdfium-review.googlesource.com/10854
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'fpdfsdk/formfiller/cffl_button.cpp')
-rw-r--r-- | fpdfsdk/formfiller/cffl_button.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/fpdfsdk/formfiller/cffl_button.cpp b/fpdfsdk/formfiller/cffl_button.cpp index 4fd02ae178..dab0045373 100644 --- a/fpdfsdk/formfiller/cffl_button.cpp +++ b/fpdfsdk/formfiller/cffl_button.cpp @@ -62,42 +62,42 @@ bool CFFL_Button::OnMouseMove(CPDFSDK_PageView* pPageView, void CFFL_Button::OnDraw(CPDFSDK_PageView* pPageView, CPDFSDK_Annot* pAnnot, CFX_RenderDevice* pDevice, - CFX_Matrix* pUser2Device) { + const CFX_Matrix& mtUser2Device) { ASSERT(pPageView); CPDFSDK_Widget* pWidget = static_cast<CPDFSDK_Widget*>(pAnnot); CPDF_FormControl* pCtrl = pWidget->GetFormControl(); if (pCtrl->GetHighlightingMode() != CPDF_FormControl::Push) { - pWidget->DrawAppearance(pDevice, *pUser2Device, CPDF_Annot::Normal, + pWidget->DrawAppearance(pDevice, mtUser2Device, CPDF_Annot::Normal, nullptr); return; } if (m_bMouseDown) { if (pWidget->IsWidgetAppearanceValid(CPDF_Annot::Down)) { - pWidget->DrawAppearance(pDevice, *pUser2Device, CPDF_Annot::Down, + pWidget->DrawAppearance(pDevice, mtUser2Device, CPDF_Annot::Down, nullptr); } else { - pWidget->DrawAppearance(pDevice, *pUser2Device, CPDF_Annot::Normal, + pWidget->DrawAppearance(pDevice, mtUser2Device, CPDF_Annot::Normal, nullptr); } return; } if (m_bMouseIn) { if (pWidget->IsWidgetAppearanceValid(CPDF_Annot::Rollover)) { - pWidget->DrawAppearance(pDevice, *pUser2Device, CPDF_Annot::Rollover, + pWidget->DrawAppearance(pDevice, mtUser2Device, CPDF_Annot::Rollover, nullptr); } else { - pWidget->DrawAppearance(pDevice, *pUser2Device, CPDF_Annot::Normal, + pWidget->DrawAppearance(pDevice, mtUser2Device, CPDF_Annot::Normal, nullptr); } return; } - pWidget->DrawAppearance(pDevice, *pUser2Device, CPDF_Annot::Normal, nullptr); + pWidget->DrawAppearance(pDevice, mtUser2Device, CPDF_Annot::Normal, nullptr); } void CFFL_Button::OnDrawDeactive(CPDFSDK_PageView* pPageView, CPDFSDK_Annot* pAnnot, CFX_RenderDevice* pDevice, - CFX_Matrix* pUser2Device) { - OnDraw(pPageView, pAnnot, pDevice, pUser2Device); + const CFX_Matrix& mtUser2Device) { + OnDraw(pPageView, pAnnot, pDevice, mtUser2Device); } |