From bcdbeaea96d53800ee806f463108f54f79a19347 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Tue, 21 Aug 2018 23:07:21 +0000 Subject: Use UnownedPtr<> to theme provider in cfwl_widgetproperties.h Mark two other fields which must remain raw. Change-Id: Idcd9b074aad23f35dc6607feeaa4fa6701efffaa Reviewed-on: https://pdfium-review.googlesource.com/40916 Reviewed-by: Lei Zhang Commit-Queue: Tom Sepez --- xfa/fwl/cfwl_pushbutton.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'xfa/fwl/cfwl_pushbutton.cpp') diff --git a/xfa/fwl/cfwl_pushbutton.cpp b/xfa/fwl/cfwl_pushbutton.cpp index 46d9876433..4856029f33 100644 --- a/xfa/fwl/cfwl_pushbutton.cpp +++ b/xfa/fwl/cfwl_pushbutton.cpp @@ -52,14 +52,14 @@ void CFWL_PushButton::DrawWidget(CXFA_Graphics* pGraphics, const CFX_Matrix& matrix) { if (!pGraphics) return; - if (!m_pProperties->m_pThemeProvider) + + IFWL_ThemeProvider* pTheme = m_pProperties->m_pThemeProvider.Get(); + if (!pTheme) return; - if (HasBorder()) { - DrawBorder(pGraphics, CFWL_Part::Border, m_pProperties->m_pThemeProvider, - matrix); - } - DrawBkground(pGraphics, m_pProperties->m_pThemeProvider, &matrix); + if (HasBorder()) + DrawBorder(pGraphics, CFWL_Part::Border, pTheme, matrix); + DrawBkground(pGraphics, pTheme, &matrix); } void CFWL_PushButton::DrawBkground(CXFA_Graphics* pGraphics, -- cgit v1.2.3