Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CR23: Fix background behind toolbar rounded corners.
When the toolbar draws its rounded corners, it leaves behind some pixels that are unpainted. This CL adds two child Views to ToolbarView that sit behind the top-left and top-right corners. These views are not affected by the clip path. The views draw the same background as the tabstrip. This CL makes two small supporting changes: * It moves some logic in TopContainerBackground to a standalone method to avoid code duplication for painting image-themed backgrounds. * It adds a listener to update the background views on window active state change. Note that the toolbar already repaints on theme change so no additional listener is needed for that case. Change-Id: Id06fd5121e975b9268b89de7a74eb8ce5ba82e4e Bug: 4559201 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4559201 Reviewed-by: David Pennington <dpenning@chromium.org> Commit-Queue: Erik Chen <erikchen@chromium.org> Reviewed-by: Robert Liao <robliao@chromium.org> Code-Coverage: Findit <findit-for-me@appspot.gserviceaccount.com> Cr-Commit-Position: refs/heads/main@{#1150000}
- Loading branch information
Showing
4 changed files
with
110 additions
and
24 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