Manually roll src/third_party/pdfium/ 2b2e1584e..1d3378762 (1 commit)
https://pdfium.googlesource.com/pdfium.git/+log/2b2e1584ef6d..1d3378762d82 $ git log 2b2e1584e..1d3378762 --date=short --no-merges --format='%ad %ae %s' 2020-09-18 thestig Fix FPDFText_GetCharBox() returning excessively tall char boxes. With the FPDFText_GetCharBox() change, some code in pdf/ need to be adjusted, so PDFiumPageTextTests pass: 1) In TestHighlightTextRunInfo, a text run that only contains a space used to be 25 units tall. Now it is 14, which better matches the surrounding text runs and no longer sticks out. 2) In TestTextRunBounds, the leading space is now shorter, but the rect to pixel conversion rounds it down to 0. Change FloatPageRectToPixelRect() to change rect dimensions that would round down to 0 to round up to 1 instead. Change-Id: I887e0567e8a9372690e5fcc0f82d96c4852df80a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2425751 Commit-Queue: Lei Zhang <thestig@chromium.org> Reviewed-by: Ankit Kumar🌪 ️ <ankk@microsoft.com> Reviewed-by:Dominic Mazzoni <dmazzoni@chromium.org> Cr-Commit-Position: refs/heads/master@{#809994}
Showing
Please register or sign in to comment