summaryrefslogtreecommitdiff
path: root/xfa/fxfa/app/xfa_fwladapter.cpp
diff options
context:
space:
mode:
authordsinclair <dsinclair@chromium.org>2016-11-15 12:00:41 -0800
committerCommit bot <commit-bot@chromium.org>2016-11-15 12:00:41 -0800
commit05b9a317d66c29f740e4b0e89ea87143a11d61fc (patch)
tree642bca12314f6730071c9d6fd0d871e73f9b0b29 /xfa/fxfa/app/xfa_fwladapter.cpp
parent70c4afd5c3c5c44cd24f814423a23a6ef05bba02 (diff)
downloadpdfium-05b9a317d66c29f740e4b0e89ea87143a11d61fc.tar.xz
Cleaning methods and visibility in cfwl_* files.
First pass at cleaning up visibility, return values and const'ness of cfwl_* class. Review-Url: https://codereview.chromium.org/2501743002
Diffstat (limited to 'xfa/fxfa/app/xfa_fwladapter.cpp')
-rw-r--r--xfa/fxfa/app/xfa_fwladapter.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/xfa/fxfa/app/xfa_fwladapter.cpp b/xfa/fxfa/app/xfa_fwladapter.cpp
index d827ad101f..ba38f853a6 100644
--- a/xfa/fxfa/app/xfa_fwladapter.cpp
+++ b/xfa/fxfa/app/xfa_fwladapter.cpp
@@ -13,18 +13,17 @@ CXFA_FWLAdapterWidgetMgr::CXFA_FWLAdapterWidgetMgr() {}
CXFA_FWLAdapterWidgetMgr::~CXFA_FWLAdapterWidgetMgr() {}
-FWL_Error CXFA_FWLAdapterWidgetMgr::RepaintWidget(IFWL_Widget* pWidget,
- const CFX_RectF* pRect) {
+void CXFA_FWLAdapterWidgetMgr::RepaintWidget(IFWL_Widget* pWidget,
+ const CFX_RectF* pRect) {
if (!pWidget)
- return FWL_Error::Indefinite;
+ return;
CXFA_FFWidget* pFFWidget =
static_cast<CXFA_FFWidget*>(pWidget->GetLayoutItem());
if (!pFFWidget)
- return FWL_Error::Indefinite;
+ return;
pFFWidget->AddInvalidateRect(nullptr);
- return FWL_Error::Succeeded;
}
bool CXFA_FWLAdapterWidgetMgr::GetPopupPos(IFWL_Widget* pWidget,