d753dd3f23fade30ede116255e5e71cf03430a3c

In the PDF viewer, the viewport uses goToPageAndXY() to navigate inside the document, which takes in-screen coordinates as x and y input. The parameters we get from FPDFDest_GetVieware() are directly from the named destination, which uses the in-page coordinates. However, these in-page coordinates are sent to the viewport for navigation without getting transformed into in-screen coordinates, which results in PDF viewer zooming in at the wrong region of the page for FitR type named destination. Since coordinate transformation is missing for all view fit types, this CL adds a helper ParamsTransformPageToScreen() to handle the transformation according to the view's fit type. (See Table 151 about Destination syntax from PDF 32000-1:2008.) Bug: 1136733 Change-Id: I811844260f2ea9b1a5244a178174691e85f2f96d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2628492 Reviewed-by: dsinclair <dsinclair@chromium.org> Commit-Queue: Hui Yingst <nigi@chromium.org> Cr-Commit-Position: refs/heads/master@{#843710}
…
…
Chromium
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
To check out the source code locally, don't use git clone
! Instead,
follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
Description
Chromium是一个开源浏览器项目,提供了一种安全、快速、稳定的方法来体验Web。该浏览器可以在多个平台上下载,包括Mac、Windows、Linux和ChromiumOS。项目原始地址: https://chromium.googlesource.com/chromium/src.git
https://www.mobibrw.com/gitea-mirrors/chromium/src.git
Languages
C++
74.4%
Java
8.2%
Objective-C++
4.6%
TypeScript
4%
Python
2.5%
Other
6.1%