Make sure StyleEngine uses the same CSSFontSelector in its lifetime
StyleEngine shouldn't switch CSSFontSelector during its lifetime. It's almost ensured, except that popups may change it during initialization. This patch rewrites CSSFontSelector initialization in popup documents, so that the correct CSSFontSelector is used from the beginning, and does not need to be overridden later. This is preparation for ensuring no FontSelector switching for Font and FontFallbackList. Bug: 1049295 Change-Id: Iaee3121ef06e4d2d6ac357bfa61332eee1da0bbf Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2099297 Commit-Queue: Xiaocheng Hu <xiaochengh@chromium.org> Reviewed-by:Kent Tamura <tkent@chromium.org> Cr-Commit-Position: refs/heads/master@{#749502}
Showing
Please register or sign in to comment