
Many of the calculations in pdfium_searchify.cc will ultimately be sent to PDFium. Since PDFs use floats, PDFium generally does as well. One exception to this is PDFium's FPDFPageObj_Transform() API, which takes doubles. This oddity will be fixed in the near future when the replacement FPDFPageObj_TransformF() API becomes available. Prepare for that by switching to doubles to floats. Bug: 352379279 Change-Id: Idec8e8eb0cfeaf2c0b3f480403453cab7f682430 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5693625 Commit-Queue: Lei Zhang <thestig@chromium.org> Reviewed-by: Chu-Hsuan Yang <chuhsuan@chromium.org> Cr-Commit-Position: refs/heads/main@{#1326214}
//pdf
contains the PDF plugin, its Blink-based replacement, as well as PDF
utility functions that leverage PDFium. It can use low-level components that
live below the content layer, as well as other foundational code like
//printing
. It should not use //content
or anything in //components
that
lives above the content layer. Code that lives above the content layer should
live in //components/pdf
, or in the embedder. All the code here should run in
sandboxed child processes.
TODO(crbug.com/40186598): Remove existing //content
dependencies.