Pass the accessibility tree to the composited PDF document only.
PrintCompositorImpl generates a PDF for each individual page and then a single composite PDF. The previous patch mistakenly passed the accessibility tree to the individual page PDFs, which aren't ultimately exported. Pass the accessibility tree to the composite PDF document instead. The accessibility tree isn't available when DocumentInfo is created, so instead we now create the SkPDFDocument before compositing the first page rather than in the DocumentInfo constructor. Bug: 607777 Change-Id: I2164f94b81aa858f542b1df9012896338b507361 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2063897Reviewed-by:Lei Zhang <thestig@chromium.org> Commit-Queue: Dominic Mazzoni <dmazzoni@chromium.org> Cr-Commit-Position: refs/heads/master@{#744196}
Showing
Please register or sign in to comment