Font::ShouldSkipDrawing() should use valid FontFallbackList
When two text nodes are shaped together (e.g., <span>foo</span><span>bar</span>), we only use the first node's Font. If they have different Font objects, then the FontFallbackList on the second node becomes stale. This patch makes sure that when calling Font::ShouldSkipDrawing() on the second node, we always use the up-to-date FontFallbackList, so that we don't hit a DCHECK about stale FontFallbackList. Bug: 1050564 Change-Id: I92db1875faebb7311a179d70512b413b43f408aa Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2231905 Commit-Queue: Xiaocheng Hu <xiaochengh@chromium.org> Reviewed-by:Koji Ishii <kojii@chromium.org> Reviewed-by:
Dominik Röttsches <drott@chromium.org> Cr-Commit-Position: refs/heads/master@{#775738}
Showing
Please register or sign in to comment