diff options
author | Lei Zhang <thestig@chromium.org> | 2017-08-17 15:07:47 -0700 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-08-28 17:16:28 +0000 |
commit | 8a4494034eb77bbc3453108616cc5dd67d3adbef (patch) | |
tree | ba1ffac6210530acbdbad360c2c975b100e60558 /fpdfsdk/formfiller/cffl_button.cpp | |
parent | 2bb28c347bcafc2fb5ad3e7782220e31048cc81d (diff) | |
download | pdfium-8a4494034eb77bbc3453108616cc5dd67d3adbef.tar.xz |
Change DrawAppearance() methods to take CFX_Matrix by const-ref.
Change-Id: If038850c745ac26e50c313bdbe630483434caedc
Reviewed-on: https://pdfium-review.googlesource.com/11390
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'fpdfsdk/formfiller/cffl_button.cpp')
-rw-r--r-- | fpdfsdk/formfiller/cffl_button.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/fpdfsdk/formfiller/cffl_button.cpp b/fpdfsdk/formfiller/cffl_button.cpp index 2a290ed213..4fd02ae178 100644 --- a/fpdfsdk/formfiller/cffl_button.cpp +++ b/fpdfsdk/formfiller/cffl_button.cpp @@ -67,30 +67,32 @@ void CFFL_Button::OnDraw(CPDFSDK_PageView* 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, nullptr); + pWidget->DrawAppearance(pDevice, *pUser2Device, CPDF_Annot::Normal, + nullptr); return; } if (m_bMouseDown) { if (pWidget->IsWidgetAppearanceValid(CPDF_Annot::Down)) { - pWidget->DrawAppearance(pDevice, pUser2Device, CPDF_Annot::Down, nullptr); + pWidget->DrawAppearance(pDevice, *pUser2Device, CPDF_Annot::Down, + nullptr); } else { - pWidget->DrawAppearance(pDevice, pUser2Device, CPDF_Annot::Normal, + pWidget->DrawAppearance(pDevice, *pUser2Device, CPDF_Annot::Normal, nullptr); } return; } if (m_bMouseIn) { if (pWidget->IsWidgetAppearanceValid(CPDF_Annot::Rollover)) { - pWidget->DrawAppearance(pDevice, pUser2Device, CPDF_Annot::Rollover, + pWidget->DrawAppearance(pDevice, *pUser2Device, CPDF_Annot::Rollover, nullptr); } else { - pWidget->DrawAppearance(pDevice, pUser2Device, CPDF_Annot::Normal, + pWidget->DrawAppearance(pDevice, *pUser2Device, CPDF_Annot::Normal, nullptr); } return; } - pWidget->DrawAppearance(pDevice, pUser2Device, CPDF_Annot::Normal, nullptr); + pWidget->DrawAppearance(pDevice, *pUser2Device, CPDF_Annot::Normal, nullptr); } void CFFL_Button::OnDrawDeactive(CPDFSDK_PageView* pPageView, |