summaryrefslogtreecommitdiff
path: root/xfa/fxfa/app/xfa_ffimage.cpp
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-04-24 16:26:11 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-04-24 20:50:12 +0000
commited991c7d9d5bede7e3bb93ff6571512d875716dd (patch)
treef59ba63435f5c83db25c12c49ce798c274ee2608 /xfa/fxfa/app/xfa_ffimage.cpp
parent302cd78d00c280cb212a5934a7a8293851e9650c (diff)
downloadpdfium-ed991c7d9d5bede7e3bb93ff6571512d875716dd.tar.xz
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 <tsepez@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/app/xfa_ffimage.cpp')
-rw-r--r--xfa/fxfa/app/xfa_ffimage.cpp7
1 files changed, 5 insertions, 2 deletions
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) {