summaryrefslogtreecommitdiff
path: root/xfa/fxfa/xfa_ffwidget.h
diff options
context:
space:
mode:
authordan sinclair <dsinclair@chromium.org>2017-02-04 10:16:21 -0500
committerChromium commit bot <commit-bot@chromium.org>2017-02-04 15:43:04 +0000
commitaaf0bdc5bf420d08dfcbb049c4511c55eec0dd6c (patch)
tree275ffc37daf73cf61a25aef532f62a9f271b39bd /xfa/fxfa/xfa_ffwidget.h
parent65c7c234d026101f69754f97f40e73eb29a3ef16 (diff)
downloadpdfium-aaf0bdc5bf420d08dfcbb049c4511c55eec0dd6c.tar.xz
Remove unused parameterchromium/3004
The pPageView parameter is always set to nullptr when creating XFA widgets. Change-Id: I4259ff7e523dc462242d2e37f0e2a919c5543035 Reviewed-on: https://pdfium-review.googlesource.com/2511 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: Nicolás Peña <npm@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'xfa/fxfa/xfa_ffwidget.h')
-rw-r--r--xfa/fxfa/xfa_ffwidget.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/xfa/fxfa/xfa_ffwidget.h b/xfa/fxfa/xfa_ffwidget.h
index 009cd44dc0..e370de22aa 100644
--- a/xfa/fxfa/xfa_ffwidget.h
+++ b/xfa/fxfa/xfa_ffwidget.h
@@ -24,7 +24,9 @@ enum class FWL_WidgetHit;
inline FX_FLOAT XFA_UnitPx2Pt(FX_FLOAT fPx, FX_FLOAT fDpi) {
return fPx * 72.0f / fDpi;
}
+
#define XFA_FLOAT_PERCISION 0.001f
+
enum XFA_WIDGETITEM {
XFA_WIDGETITEM_Parent,
XFA_WIDGETITEM_FirstChild,
@@ -43,7 +45,7 @@ class CXFA_CalcData {
class CXFA_FFWidget : public CXFA_ContentLayoutItem {
public:
- CXFA_FFWidget(CXFA_FFPageView* pPageView, CXFA_WidgetAcc* pDataAcc);
+ explicit CXFA_FFWidget(CXFA_WidgetAcc* pDataAcc);
~CXFA_FFWidget() override;
virtual bool GetBBox(CFX_RectF& rtBox,
@@ -100,8 +102,8 @@ class CXFA_FFWidget : public CXFA_ContentLayoutItem {
virtual bool ReplaceSpellCheckWord(CFX_PointF pointf,
const CFX_ByteStringC& bsReplace);
- CXFA_FFPageView* GetPageView();
- void SetPageView(CXFA_FFPageView* pPageView);
+ CXFA_FFPageView* GetPageView() const { return m_pPageView; }
+ void SetPageView(CXFA_FFPageView* pPageView) { m_pPageView = pPageView; }
void GetWidgetRect(CFX_RectF& rtWidget);
CFX_RectF ReCacheWidgetRect();
uint32_t GetStatus();