commit | 63ba91149a54eee3d005b6fdaf0523cc21ed0857 | [log] [tgz] |
---|---|---|
author | Andy Phan <andyphan@chromium.org> | Thu May 04 22:23:32 2023 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu May 04 22:23:32 2023 |
tree | 00a71d12c7dda60e6d049ea1658214458c7c866e | |
parent | c1dd4cc8b677687a72c9bf31d9e4c2a5d43bf4a5 [diff] |
[PDF Viewer] Call Viewport.setPosition() only once for Fit* parameters Flaky behavior is observed when Viewport.setPosition() is called multiple times consecutively. Modify the pipeline for parsing URL params so that for Fit* parameters, setPosition() is only called once. Have Viewport.fitTo{Page,Width,Height}() take optional params so that the position can be calculated along with the zoom, instead of separately. This removes a setPosition() call. This also helps set up allowing named destinations to change fitting type in the future, without this flaky behavior. Bug: 1439293, 1430193 Change-Id: Iedebbffe6da4318c5c59719e3a64c4d9af9016d5 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4464982 Reviewed-by: Demetrios Papadopoulos <dpapad@chromium.org> Commit-Queue: Andy Phan <andyphan@chromium.org> Cr-Commit-Position: refs/heads/main@{#1139808}
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.
If you found a bug, please file it at https://crbug.com/new.