[FCP++] Text: ignore text blocking on webfont
Currently FCP++ doesn't ignore the text paint in the block stage. The block stage happens when we have font-display:block for a text node and the webfont of the text is not yet loaded. FCP++ should ignore the text because it's not visible to users. The text should be captured only after the text starts to be visible. The block stage is controlled by Font::ShouldSkipDrawing(). When a text node is blocked on web-font, the text would be set to invisible-font. So FCP++ should use this method to tell whether the text would not be drawn due to the invisible font. Bug: 944530 Change-Id: If80a5bdeccce0896d0e4e836c89bfd9aefbd627d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1609669 Commit-Queue: Liquan (Max) Gu <maxlg@chromium.org> Reviewed-by:Liquan (Max) Gu <maxlg@chromium.org> Reviewed-by:
Xianzhu Wang <wangxianzhu@chromium.org> Cr-Commit-Position: refs/heads/master@{#659661}
Showing
Please register or sign in to comment