diff options
author | Lei Zhang <thestig@chromium.org> | 2017-03-28 14:32:13 -0700 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-03-28 21:46:26 +0000 |
commit | afc8eb3baef519afde8740fa5ef7acd04ae802a5 (patch) | |
tree | f41590c0517814a61a9077363453b364eae918f8 /xfa/fxfa/cxfa_ffwidget.cpp | |
parent | 3bb57514867a2bd10ba535e0b06de566a58d8085 (diff) | |
download | pdfium-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.cpp')
-rw-r--r-- | xfa/fxfa/cxfa_ffwidget.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xfa/fxfa/cxfa_ffwidget.cpp b/xfa/fxfa/cxfa_ffwidget.cpp index 2e9c9a6ac8..a74c6d7057 100644 --- a/xfa/fxfa/cxfa_ffwidget.cpp +++ b/xfa/fxfa/cxfa_ffwidget.cpp @@ -43,13 +43,13 @@ const CFWL_App* CXFA_FFWidget::GetFWLApp() { return GetPageView()->GetDocView()->GetDoc()->GetApp()->GetFWLApp(); } -CFX_RectF CXFA_FFWidget::GetWidgetRect() { +const CFX_RectF& CXFA_FFWidget::GetWidgetRect() const { if ((m_dwStatus & XFA_WidgetStatus_RectCached) == 0) RecacheWidgetRect(); return m_rtWidget; } -CFX_RectF CXFA_FFWidget::RecacheWidgetRect() { +const CFX_RectF& CXFA_FFWidget::RecacheWidgetRect() const { m_dwStatus |= XFA_WidgetStatus_RectCached; m_rtWidget = GetRect(false); return m_rtWidget; |