forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed inactive tabs "flashing" issue.
All inactive cells were "flashing" when switching from the tab view to a pinned cell on the tab grid. This happened because snapshots weren't preloaded for the inactive cell on the tab grid. Previous logic expected that the active cell could be only in the tab grid. Therefore, the snapshots were preloaded for the cells before and after the active one. Currently, the active cell could be a pinned one. Thus, the preloading logic stopped working. Without preloading the grid cells are unable to load the snapshot fast enough to display it during the contracting animation. So, the cells fade in an empty view which from the user perspective looks like a flash. This CL updates the snapshots preloading logic. Now the snapshots preloading is done for visible items in the grid only. Fixed: 1417139 Change-Id: Id71348d0d1454c9700c7cc98529b01513014fc1c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4255770 Commit-Queue: Petro Akzhygitov <pakzhygitov@google.com> Reviewed-by: Sylvain Defresne <sdefresne@chromium.org> Cr-Commit-Position: refs/heads/main@{#1107416}
- Loading branch information
1 parent
bfe320f
commit b7e9ab9
Showing
7 changed files
with
55 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters