diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-02-21 17:20:43 -0500 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-02-22 01:30:22 +0000 |
commit | 6eec1c45c9c6e0812950d55ae88340cf41bc243a (patch) | |
tree | e655cdbd671c5f2d3863b0fa84db14ca9a09dcde /fpdfsdk/cpdfsdk_formfillenvironment.cpp | |
parent | 55db09131508cd347c9f84b5ce1904e84e01a60c (diff) | |
download | pdfium-6eec1c45c9c6e0812950d55ae88340cf41bc243a.tar.xz |
Update Invalidate to take a rect
This Cl updates the various Invalidate methods to take a rect when possible.
Change-Id: I5359f4d8118f822347414ccb8d261aeef2ac35e0
Reviewed-on: https://pdfium-review.googlesource.com/2814
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.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/fpdfsdk/cpdfsdk_formfillenvironment.cpp b/fpdfsdk/cpdfsdk_formfillenvironment.cpp index b91c97842f..4aae48c828 100644 --- a/fpdfsdk/cpdfsdk_formfillenvironment.cpp +++ b/fpdfsdk/cpdfsdk_formfillenvironment.cpp @@ -233,12 +233,11 @@ CPDFSDK_FormFillEnvironment::GetInteractiveFormFiller() { } void CPDFSDK_FormFillEnvironment::Invalidate(FPDF_PAGE page, - double left, - double top, - double right, - double bottom) { - if (m_pInfo && m_pInfo->FFI_Invalidate) - m_pInfo->FFI_Invalidate(m_pInfo, page, left, top, right, bottom); + const FX_RECT& rect) { + if (m_pInfo && m_pInfo->FFI_Invalidate) { + m_pInfo->FFI_Invalidate(m_pInfo, page, rect.left, rect.top, rect.right, + rect.bottom); + } } void CPDFSDK_FormFillEnvironment::OutputSelectedRect(FPDF_PAGE page, |