diff options
author | Lei Zhang <thestig@chromium.org> | 2018-04-12 16:35:49 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-04-12 16:35:49 +0000 |
commit | 56cc5c12a7f569f218c44a6186cdc3676ea0793b (patch) | |
tree | fd03d43e9e59d28554d7169f319f421dad6f8832 /fpdfsdk/fpdfxfa/cpdfxfa_page.cpp | |
parent | a105fa126cfc2de661dca824bd307aa329e22c9d (diff) | |
download | pdfium-56cc5c12a7f569f218c44a6186cdc3676ea0793b.tar.xz |
Add CPDF_Page::DeviceToPage() / PageToDevice().
Just like CPDFXFA_Page. Also mark the methods const.
Change-Id: I6717b4b61a29663780f45bf872f76fe8e671df75
Reviewed-on: https://pdfium-review.googlesource.com/30132
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'fpdfsdk/fpdfxfa/cpdfxfa_page.cpp')
-rw-r--r-- | fpdfsdk/fpdfxfa/cpdfxfa_page.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fpdfsdk/fpdfxfa/cpdfxfa_page.cpp b/fpdfsdk/fpdfxfa/cpdfxfa_page.cpp index c3d5e18707..d4a6d95574 100644 --- a/fpdfsdk/fpdfxfa/cpdfxfa_page.cpp +++ b/fpdfsdk/fpdfxfa/cpdfxfa_page.cpp @@ -130,7 +130,7 @@ void CPDFXFA_Page::DeviceToPage(const FX_RECT& rect, int rotate, const CFX_PointF& device_point, double* page_x, - double* page_y) { + double* page_y) const { if (!m_pPDFPage && !m_pXFAPageView) return; @@ -145,7 +145,7 @@ void CPDFXFA_Page::PageToDevice(const FX_RECT& rect, double page_x, double page_y, int* device_x, - int* device_y) { + int* device_y) const { if (!m_pPDFPage && !m_pXFAPageView) return; |