summaryrefslogtreecommitdiff
path: root/xfa/fxfa/cxfa_ffwidget.h
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2017-03-28 14:32:13 -0700
committerChromium commit bot <commit-bot@chromium.org>2017-03-28 21:46:26 +0000
commitafc8eb3baef519afde8740fa5ef7acd04ae802a5 (patch)
treef41590c0517814a61a9077363453b364eae918f8 /xfa/fxfa/cxfa_ffwidget.h
parent3bb57514867a2bd10ba535e0b06de566a58d8085 (diff)
downloadpdfium-afc8eb3baef519afde8740fa5ef7acd04ae802a5.tar.xz
Fix nits in cxfa_ffpageview.cpp and friends.
Change-Id: I1d074a7023a3906c96626f3ebfa7955e3d3d67f7 Reviewed-on: https://pdfium-review.googlesource.com/3192 Commit-Queue: Lei Zhang <thestig@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'xfa/fxfa/cxfa_ffwidget.h')
-rw-r--r--xfa/fxfa/cxfa_ffwidget.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/xfa/fxfa/cxfa_ffwidget.h b/xfa/fxfa/cxfa_ffwidget.h
index 8c83c4cf4c..ef3d908221 100644
--- a/xfa/fxfa/cxfa_ffwidget.h
+++ b/xfa/fxfa/cxfa_ffwidget.h
@@ -142,8 +142,8 @@ class CXFA_FFWidget : public CXFA_ContentLayoutItem {
CXFA_FFPageView* GetPageView() const { return m_pPageView; }
void SetPageView(CXFA_FFPageView* pPageView) { m_pPageView = pPageView; }
- CFX_RectF GetWidgetRect();
- CFX_RectF RecacheWidgetRect();
+ const CFX_RectF& GetWidgetRect() const;
+ const CFX_RectF& RecacheWidgetRect() const;
uint32_t GetStatus();
void ModifyStatus(uint32_t dwAdded, uint32_t dwRemoved);
@@ -183,8 +183,8 @@ class CXFA_FFWidget : public CXFA_ContentLayoutItem {
CXFA_FFDocView* m_pDocView;
CXFA_FFPageView* m_pPageView;
- CXFA_WidgetAcc* m_pDataAcc;
- CFX_RectF m_rtWidget;
+ CXFA_WidgetAcc* const m_pDataAcc;
+ mutable CFX_RectF m_rtWidget;
};
#endif // XFA_FXFA_CXFA_FFWIDGET_H_