From ed991c7d9d5bede7e3bb93ff6571512d875716dd Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Mon, 24 Apr 2017 16:26:11 -0400 Subject: Nit cleanup in XFA widget code This Cl cleans up nits in the remaining XFA widget code. Change-Id: I10f33ee2ab0ebdb06aeee582a04188fbd7a8bf9e Reviewed-on: https://pdfium-review.googlesource.com/4472 Reviewed-by: Tom Sepez Commit-Queue: dsinclair --- xfa/fxfa/app/xfa_ffimage.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'xfa/fxfa/app/xfa_ffimage.cpp') diff --git a/xfa/fxfa/app/xfa_ffimage.cpp b/xfa/fxfa/app/xfa_ffimage.cpp index 23ed88616d..db9b4de52a 100644 --- a/xfa/fxfa/app/xfa_ffimage.cpp +++ b/xfa/fxfa/app/xfa_ffimage.cpp @@ -21,16 +21,19 @@ CXFA_FFImage::~CXFA_FFImage() { bool CXFA_FFImage::IsLoaded() { return !!GetDataAcc()->GetImageImage(); } + bool CXFA_FFImage::LoadWidget() { - if (GetDataAcc()->GetImageImage()) { + if (GetDataAcc()->GetImageImage()) return true; - } + GetDataAcc()->LoadImageImage(); return CXFA_FFDraw::LoadWidget(); } + void CXFA_FFImage::UnloadWidget() { GetDataAcc()->SetImageImage(nullptr); } + void CXFA_FFImage::RenderWidget(CFX_Graphics* pGS, CFX_Matrix* pMatrix, uint32_t dwStatus) { -- cgit v1.2.3