diff options
author | Tom Sepez <tsepez@chromium.org> | 2018-07-03 17:18:35 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-07-03 17:18:35 +0000 |
commit | 931a6b9c253f161f8016064eee601cd238ed246f (patch) | |
tree | a34858792d190b86502379698f8c1344bb13a208 /xfa/fwl/theme/cfwl_listboxtp.cpp | |
parent | bc7e310b027809562eb589bfef72737c193ee27a (diff) | |
download | pdfium-931a6b9c253f161f8016064eee601cd238ed246f.tar.xz |
Use UnownedPtr<> in cfwl_scrollbar.h and cfwl_themebackground.h
Change-Id: Ib65197a9cd9de173de8e77db168dcfbb43669022
Reviewed-on: https://pdfium-review.googlesource.com/36911
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fwl/theme/cfwl_listboxtp.cpp')
-rw-r--r-- | xfa/fwl/theme/cfwl_listboxtp.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/xfa/fwl/theme/cfwl_listboxtp.cpp b/xfa/fwl/theme/cfwl_listboxtp.cpp index 6c495b4c81..9b8cd0dc7a 100644 --- a/xfa/fwl/theme/cfwl_listboxtp.cpp +++ b/xfa/fwl/theme/cfwl_listboxtp.cpp @@ -22,21 +22,22 @@ void CFWL_ListBoxTP::DrawBackground(CFWL_ThemeBackground* pParams) { switch (pParams->m_iPart) { case CFWL_Part::Border: { - DrawBorder(pParams->m_pGraphics, &pParams->m_rtPart, &pParams->m_matrix); + DrawBorder(pParams->m_pGraphics.Get(), &pParams->m_rtPart, + &pParams->m_matrix); break; } case CFWL_Part::Background: { - FillSolidRect(pParams->m_pGraphics, ArgbEncode(255, 255, 255, 255), + FillSolidRect(pParams->m_pGraphics.Get(), ArgbEncode(255, 255, 255, 255), &pParams->m_rtPart, &pParams->m_matrix); if (pParams->m_pData) { - FillSolidRect(pParams->m_pGraphics, FWLTHEME_COLOR_Background, + FillSolidRect(pParams->m_pGraphics.Get(), FWLTHEME_COLOR_Background, static_cast<CFX_RectF*>(pParams->m_pData), &pParams->m_matrix); } break; } case CFWL_Part::ListItem: { - DrawListBoxItem(pParams->m_pGraphics, pParams->m_dwStates, + DrawListBoxItem(pParams->m_pGraphics.Get(), pParams->m_dwStates, &pParams->m_rtPart, pParams->m_pData, &pParams->m_matrix); break; } @@ -47,7 +48,7 @@ void CFWL_ListBoxTP::DrawBackground(CFWL_ThemeBackground* pParams) { } else if (pParams->m_dwStates == CFWL_PartState_Normal) { color = 0xFF0000FF; } - FillSolidRect(pParams->m_pGraphics, color, &pParams->m_rtPart, + FillSolidRect(pParams->m_pGraphics.Get(), color, &pParams->m_rtPart, &pParams->m_matrix); break; } |