DescriptionNotify font loads via FontLoader
Before this patch, font load was noticed to CSSFontSelector through the
following path:
RemoteFontFaceSource
-> CSSFontFace
-> CSSSegmentedFontFace
-> CSSFontSelector
However, StyleEngine clears FontFaceCache upon stylesheet changes and
reconstruct it lazily, it is possible that CSSSegmentedFontFace is
absent when a load is completed. As a result, loaded font is not
rendered.
This patch fixes the problem by changing the notification path as follows:
RemoteFontFaceSource -> FontLoader -> CSSFontSelector.
BUG=378238
TEST=fast/css/font-face-css-change-while-loading.html
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=176463
Patch Set 1 : WIP #Patch Set 2 : #
Total comments: 2
Patch Set 3 : #
Messages
Total messages: 7 (0 generated)
|