commit | 9e26744c7de680107e84046edc16bed25874d81e | [log] [tgz] |
---|---|---|
author | Xiaocheng Hu <xiaochengh@chromium.org> | Wed Mar 11 07:56:41 2020 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Mar 11 07:56:41 2020 |
tree | c638972dd448cc401aa936d05c65bbb00a7b6bbe | |
parent | f676aa95fc9a2927f001d34ccaefdb72937da661 [diff] |
Make sure 'font-display: optional' doesn't cause relayout This patch ensures that an 'optional' web font never causes relayout: - When document rendering starts, any 'optional' web font that hasn't been loaded enters the failure period directly. - When an @font-face rule is added, if document rendering has started and the font is not available from memory cache, then it enters the failure period directly. In this way, any element attempting to use such 'optional' fonts will always use a font that's further down in the 'font-family' list during the document's lifetime. Bug: 1040632 Change-Id: Idde675a8dddadf15d22c13b95db649410fd9cd0e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2057502 Reviewed-by: Kunihiko Sakamoto <ksakamoto@chromium.org> Reviewed-by: Chris Harrelson <chrishtr@chromium.org> Reviewed-by: Takashi Toyoshima <toyoshim@chromium.org> Reviewed-by: Rune Lillesveen <futhark@chromium.org> Commit-Queue: Xiaocheng Hu <xiaochengh@chromium.org> Cr-Commit-Position: refs/heads/master@{#749080}
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.
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.