commit | f3d4d71425e6aaa144b5d4d941fb722be6334c19 | [log] [tgz] |
---|---|---|
author | edchin <edchin@chromium.org> | Thu Jan 31 17:25:11 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Jan 31 17:25:11 2019 |
tree | 37bf23c1dc9291403fcacb90fa8d4a945728fa67 | |
parent | 48cc18182bb1df5b35119d829ebcdad7ac8d0721 [diff] |
[ios] Remove SnapshotOverlay This CL improves snapshotting overlays in the following ways: 1) BVC does not need to provide a separate yOffset for each overlay view. The overlays are in the same window as the base view, so their relative offsets can be computed. This allows for deleting the SnapshotOverlay class, which simply held the view and yOffset. 2) Documentation is improved with regards to the coordinate space of frames and calculations required to place overlays correctly in relation to the base view in the constructed snapshot. 3) This CL reduces usage of the coordinators in BVC corresponding to the overlay views, and therefore reduces entanglements in BVC. This is a step forward to migrating these coordinators to BrowserCoordinator where they belong. 4) A tiny benefit of this new approach is that overlays of any size and position will now work properly. Previously, we relied on the fact that all overlays are exactly the width of the BVC, and we only accounted for their yOffset from the top. Bug: 918032 Change-Id: If654a1a4a7d1f642c8e83deef13dbbfc386fa912 Reviewed-on: https://chromium-review.googlesource.com/c/1435681 Commit-Queue: edchin <edchin@chromium.org> Reviewed-by: Justin Cohen <justincohen@chromium.org> Reviewed-by: Kurt Horimoto <kkhorimoto@chromium.org> Reviewed-by: edchin <edchin@chromium.org> Cr-Commit-Position: refs/heads/master@{#628001}
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.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .