commit | 1893aff6814165909179c656bd6d869adc6b55f8 | [log] [tgz] |
---|---|---|
author | Peter Kasting <pkasting@chromium.org> | Wed Jan 06 17:50:14 2021 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Jan 06 17:50:14 2021 |
tree | 521bb992e29eef926efaa3c27e71f9d7c01a1366 | |
parent | 0d25be9ba3231da315f9021c32e3d239686b8032 [diff] |
Clean up a couple APIs. It makes little sense for GetFontListWithDelta() to also take non-delta values. It will also be convenient for a future CL for callers to be able to use a struct that represents "the meaningful data about a font". For both these reasons, replace the private FontKey struct with a public FontDetails struct that bundles these details, and update callers to use it as appropriate. Also, replace seemingly-unnecessary usage of Font with FontList in l10n_font_util.h (and remove dead method there). This allows removing another ResourceBundle method. Bug: none Change-Id: Ie6b35e7015fe8bdf704fc4111c0e6ca4de522308 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2611841 Commit-Queue: Scott Violet <sky@chromium.org> Reviewed-by: Scott Violet <sky@chromium.org> Auto-Submit: Peter Kasting <pkasting@chromium.org> Cr-Commit-Position: refs/heads/master@{#840663}
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.
To check out the source code locally, don't use git clone
! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.