Fix font instantiation assertion failure on session restore

It seems in certain cases font fallback returns a fontconfig interface
id which can then later not be reused by Skia. This patch fixes an
incorrect fallback to using the family in that case and returns a nullptr
instead, which fixes the assertion failure. However, we need to
investigate why the Skia typeface creation with the returned
fciId is unsuccessful, filed crbug.com/403348 for this remaining question.

BUG=273261
R=eae,eseidel

Review URL: https://codereview.chromium.org/470493003

git-svn-id: svn://svn.chromium.org/blink/trunk@180214 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent ca13cd54
......@@ -178,6 +178,8 @@ PassRefPtr<SkTypeface> FontCache::createTypeface(const FontDescription& fontDesc
if (typeface)
return adoptRef(typeface);
else
return nullptr;
}
#endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment