Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Calculate number of above-fold destinations more reliably.
Currently, the number of above-fold destinations is calculated by summing into a PreferenceKey, based on .onAppear or .onDisappear handlers. Unfortunately, this approach has not been reliably working in iOS 16. For more context, please see: https://developer.apple.com/forums/thread/717057. This change introduces a new, more reliable way for calculating the number of above-fold destinations. It introduces a new static function numDestinationsVisibleWithoutHorizontalScrolling which performs calculations on internal constants, instead of view handlers being fired to sum the number of visible items. Change-Id: If96d6817b5fae8bf28ed4d72dcd239a7cd0c5b2d Bug: 1409976 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4190367 Commit-Queue: Benjamin Williams <bwwilliams@google.com> Reviewed-by: Gauthier Ambard <gambard@chromium.org> Reviewed-by: Robbie Gibson <rkgibson@google.com> Cr-Commit-Position: refs/heads/main@{#1096872}
- Loading branch information
Benjamin Williams
authored and
Chromium LUCI CQ
committed
Jan 25, 2023
1 parent
48acd26
commit e09aca9
Showing
11 changed files
with
82 additions
and
103 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
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
20 changes: 0 additions & 20 deletions
20
ios/chrome/browser/ui/popup_menu/popup_menu_carousel_metrics_delegate.h
This file was deleted.
Oops, something went wrong.
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