commit | efd4423b6a4ca3aae2885f06390ada39bae7855f | [log] [tgz] |
---|---|---|
author | Lei Zhang <thestig@chromium.org> | Fri Jul 30 17:04:57 2021 +0000 |
committer | Pdfium LUCI CQ <pdfium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Jul 30 17:04:57 2021 +0000 |
tree | b272f65696bb6ecc31b30746533cd581cd0fa877 | |
parent | 2c7e67a98c666e90537ead8e8bc812b47778c1c6 [diff] [blame] |
Switch to a more STL-compliant clamp() implementation. Follow Chromium and port https://crrev.com/904581 to PDFium. Bug: chromium:1231569 Change-Id: If4990a70dd6b90de99b03647f1df03c85ea1530c Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/83630 Commit-Queue: Lei Zhang <thestig@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org>
diff --git a/fpdfsdk/fpdf_editpage.cpp b/fpdfsdk/fpdf_editpage.cpp index 696fa21..49671c4 100644 --- a/fpdfsdk/fpdf_editpage.cpp +++ b/fpdfsdk/fpdf_editpage.cpp
@@ -36,8 +36,8 @@ #include "core/fxcrt/fx_extension.h" #include "fpdfsdk/cpdfsdk_helpers.h" #include "public/fpdf_formfill.h" +#include "third_party/base/cxx17_backports.h" #include "third_party/base/notreached.h" -#include "third_party/base/numerics/ranges.h" #ifdef PDF_ENABLE_XFA #include "fpdfsdk/fpdfxfa/cpdfxfa_context.h"