diff options
Diffstat (limited to 'xfa/fwl/core/ifwl_picturebox.cpp')
-rw-r--r-- | xfa/fwl/core/ifwl_picturebox.cpp | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/xfa/fwl/core/ifwl_picturebox.cpp b/xfa/fwl/core/ifwl_picturebox.cpp index 50bf2a40ea..6ab792c985 100644 --- a/xfa/fwl/core/ifwl_picturebox.cpp +++ b/xfa/fwl/core/ifwl_picturebox.cpp @@ -19,8 +19,6 @@ IFWL_PictureBox::IFWL_PictureBox(const IFWL_App* app, m_rtClient.Reset(); m_rtImage.Reset(); m_matrix.SetIdentity(); - - SetDelegate(pdfium::MakeUnique<CFWL_PictureBoxImpDelegate>(this)); } IFWL_PictureBox::~IFWL_PictureBox() {} @@ -119,10 +117,7 @@ bool IFWL_PictureBox::VStyle(uint32_t dwStyle) { return false; } -CFWL_PictureBoxImpDelegate::CFWL_PictureBoxImpDelegate(IFWL_PictureBox* pOwner) - : m_pOwner(pOwner) {} - -void CFWL_PictureBoxImpDelegate::OnDrawWidget(CFX_Graphics* pGraphics, - const CFX_Matrix* pMatrix) { - m_pOwner->DrawWidget(pGraphics, pMatrix); +void IFWL_PictureBox::OnDrawWidget(CFX_Graphics* pGraphics, + const CFX_Matrix* pMatrix) { + DrawWidget(pGraphics, pMatrix); } |