From 19a33e4ece99c4bb438d870c52fbc5ed5e80c897 Mon Sep 17 00:00:00 2001 From: Henrique Nakashima Date: Wed, 21 Mar 2018 20:00:47 +0000 Subject: Rewrite CPDFXFA_DocEnvironment::GetPopupPos. 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 Reviewed-by: dsinclair --- fpdfsdk/cpdfsdk_formfillenvironment.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'fpdfsdk/cpdfsdk_formfillenvironment.cpp') 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(left); dstRect.top = static_cast(top); -- cgit v1.2.3