
If a page has an optional CropBox which has a different offset compared
to its required MediaBox, then this can impact the positioning for Ink
strokes applied to the page.
Update the transform generation used when applying Ink strokes into the
PDF page to account for any offset from the intersection of these two
boxes.
This merge excludes changes to pdfium_ink_writer_unittest.cc and related
test files, as they would require also merging several other test-only
CLs.
(cherry picked from commit 3e2ce84c84
)
Bug: 402043701
Fixed: 404291378
Change-Id: I4126dc52ddf3533580a94d2f186a46b043f0985b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6346007
Commit-Queue: Alan Screen <awscreen@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Reviewed-by: Andy Phan <andyphan@chromium.org>
Cr-Original-Commit-Position: refs/heads/main@{#1432426}
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6360627
Auto-Submit: Alan Screen <awscreen@chromium.org>
Cr-Commit-Position: refs/branch-heads/7049@{#872}
Cr-Branched-From: 2dab7846d0951a552bdc4f350dad497f986e6fed-refs/heads/main@{#1427262}
//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.