summaryrefslogtreecommitdiff
path: root/fpdfsdk/cpdfsdk_formfillenvironment.cpp
diff options
context:
space:
mode:
authorHenrique Nakashima <hnakashima@chromium.org>2018-03-21 20:00:47 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-03-21 20:00:47 +0000
commit19a33e4ece99c4bb438d870c52fbc5ed5e80c897 (patch)
tree5e68516a2930b50b0825d769a9c5dcd6da5d337a /fpdfsdk/cpdfsdk_formfillenvironment.cpp
parent11767d3ba1b453f666a084b9850a5f020c28993f (diff)
downloadpdfium-19a33e4ece99c4bb438d870c52fbc5ed5e80c897.tar.xz
Rewrite CPDFXFA_DocEnvironment::GetPopupPos.chromium/3378
This is a step to fix XFA combobox popups being rendered outside the page. The rest of the fix is in: https://chromium-review.googlesource.com/c/chromium/src/+/961249 Bug: chromium:820106 Change-Id: I51e5667bc08cdb2028c0afafa6e29e929e661c94 Reviewed-on: https://pdfium-review.googlesource.com/28371 Commit-Queue: Henrique Nakashima <hnakashima@chromium.org> Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'fpdfsdk/cpdfsdk_formfillenvironment.cpp')
-rw-r--r--fpdfsdk/cpdfsdk_formfillenvironment.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/fpdfsdk/cpdfsdk_formfillenvironment.cpp b/fpdfsdk/cpdfsdk_formfillenvironment.cpp
index 7ac7a0ea32..156314fd5a 100644
--- a/fpdfsdk/cpdfsdk_formfillenvironment.cpp
+++ b/fpdfsdk/cpdfsdk_formfillenvironment.cpp
@@ -389,8 +389,6 @@ void CPDFSDK_FormFillEnvironment::GetPageViewRect(CPDFXFA_Page* page,
double right;
double bottom;
m_pInfo->FFI_GetPageViewRect(m_pInfo, page, &left, &top, &right, &bottom);
- if (top < bottom)
- std::swap(top, bottom);
dstRect.left = static_cast<float>(left);
dstRect.top = static_cast<float>(top);