Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean up InternalSettings and ensure all settings are saved/restored
1. InternalSettingsGenerated now saves/restores all settings, including those don't have an automatically generated setter method in the class, to avoid error-prone custom save/restore in InternalSettings and ensure all changed settings, either changed by the generated setter methods or custom methods in InternalSettings, are saved and restored. 2. Also save/restore generic font family settings. 3. Because the page is never null (it's passed as a reference, and InternalSettings keep a reference to it in Member<Page>), the exception on null page never happens. The check and exception code are removed. 4. Unused and duplicate methods are removed. 5. Other simplifications and cleanups. This addresses the recent regression about PerferCompositingToLCDText caused by crrev.com/c/4337728. It may also fix some existing flaky tests. Bug: 1427271 Change-Id: Ifdc3265340a024bdfa896fd4f2d7229af9050254 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4368701 Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org> Reviewed-by: Stefan Zager <szager@chromium.org> Cr-Commit-Position: refs/heads/main@{#1122468}
- Loading branch information
1 parent
e241d4a
commit 2e9c1d9
Showing
7 changed files
with
142 additions
and
391 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
Oops, something went wrong.