mirror of
https://github.com/servo/servo.git
synced 2025-06-17 12:54:28 +00:00
Thread font load errors from platform font loading code to FontContext::get_layout_font_group_for_style, and cache the failure result, instead of panicing the thread when a font fails to load. Before this patch, a failed font load would panic a LayoutTask, causing a cascade of panics, eventually aborting the whole engine during a panic within panic. On my Arch Linux machine almost every page would crash in this manner, including e.g. reddit.com and cnn.com. Mosf of the requested fonts would load fine but some single variant of Helvetica would fail always. Not sure how to create a test for this as it seems pretty system-specific. Cheers, cyndis |
||
---|---|---|
.. | ||
canvas | ||
compositing | ||
devtools | ||
devtools_traits | ||
gfx | ||
layout | ||
layout_traits | ||
msg | ||
net | ||
plugins | ||
script | ||
script_traits | ||
servo | ||
style | ||
util |