summaryrefslogtreecommitdiff
path: root/fpdfsdk/cpdfsdk_formfillenvironment.cpp
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-02-21 17:21:08 -0500
committerChromium commit bot <commit-bot@chromium.org>2017-02-22 01:32:00 +0000
commit60fd9fc63744419a760201af596515d411b7e194 (patch)
tree8e4d8f3b2571bf0061af977f005bd65199fa0043 /fpdfsdk/cpdfsdk_formfillenvironment.cpp
parent6eec1c45c9c6e0812950d55ae88340cf41bc243a (diff)
downloadpdfium-60fd9fc63744419a760201af596515d411b7e194.tar.xz
Convert OutputSelectedRect to take a rect
This updates the CPDFSDK_FormFillEnvironment::OutputSelectedRect to match to CFX_SystemHandler::OutputSelectedRect method. Change-Id: Ia07c408533a4423cf81095c5467c9ee82a25988c Reviewed-on: https://pdfium-review.googlesource.com/2815 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'fpdfsdk/cpdfsdk_formfillenvironment.cpp')
-rw-r--r--fpdfsdk/cpdfsdk_formfillenvironment.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/fpdfsdk/cpdfsdk_formfillenvironment.cpp b/fpdfsdk/cpdfsdk_formfillenvironment.cpp
index 4aae48c828..4ef766d9f8 100644
--- a/fpdfsdk/cpdfsdk_formfillenvironment.cpp
+++ b/fpdfsdk/cpdfsdk_formfillenvironment.cpp
@@ -240,13 +240,13 @@ void CPDFSDK_FormFillEnvironment::Invalidate(FPDF_PAGE page,
}
}
-void CPDFSDK_FormFillEnvironment::OutputSelectedRect(FPDF_PAGE page,
- double left,
- double top,
- double right,
- double bottom) {
- if (m_pInfo && m_pInfo->FFI_OutputSelectedRect)
- m_pInfo->FFI_OutputSelectedRect(m_pInfo, page, left, top, right, bottom);
+void CPDFSDK_FormFillEnvironment::OutputSelectedRect(
+ FPDF_PAGE page,
+ const CFX_FloatRect& rect) {
+ if (m_pInfo && m_pInfo->FFI_OutputSelectedRect) {
+ m_pInfo->FFI_OutputSelectedRect(m_pInfo, page, rect.left, rect.top,
+ rect.right, rect.bottom);
+ }
}
void CPDFSDK_FormFillEnvironment::SetCursor(int nCursorType) {