summaryrefslogtreecommitdiff
path: root/xfa/fwl/cfwl_form.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'xfa/fwl/cfwl_form.cpp')
-rw-r--r--xfa/fwl/cfwl_form.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/xfa/fwl/cfwl_form.cpp b/xfa/fwl/cfwl_form.cpp
index f2ae46ddfd..f779c43468 100644
--- a/xfa/fwl/cfwl_form.cpp
+++ b/xfa/fwl/cfwl_form.cpp
@@ -76,15 +76,14 @@ FWL_WidgetHit CFWL_Form::HitTest(const CFX_PointF& point) {
void CFWL_Form::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;
- IFWL_ThemeProvider* pTheme = m_pProperties->m_pThemeProvider;
DrawBackground(pGraphics, pTheme);
-#if _FX_OS_ == _FX_OS_MACOSX_
- return;
-#endif
+#if _FX_OS_ != _FX_OS_MACOSX_
CFWL_ThemeBackground param;
param.m_pWidget = this;
param.m_dwStates = CFWL_PartState_Normal;
@@ -95,6 +94,7 @@ void CFWL_Form::DrawWidget(CXFA_Graphics* pGraphics, const CFX_Matrix& matrix) {
param.m_iPart = CFWL_Part::Border;
pTheme->DrawBackground(&param);
}
+#endif
}
CFWL_Widget* CFWL_Form::DoModal() {