diff options
author | bors-servo <metajack+bors@gmail.com> | 2015-03-06 10:31:05 -0700 |
---|---|---|
committer | bors-servo <metajack+bors@gmail.com> | 2015-03-06 10:31:05 -0700 |
commit | 4bd5aed5005b1a8dba828a178ea9af4277d0d4a7 (patch) | |
tree | 5c894b7e58072803a99a196256193e61ee655da4 /components/script/dom | |
parent | eda9c0c9ac29646c5b4c9ce30b97c6547345171e (diff) | |
parent | 92a4bba7854ebc25598174df3300a3a27101ab28 (diff) | |
download | servo-4bd5aed5005b1a8dba828a178ea9af4277d0d4a7.tar.gz servo-4bd5aed5005b1a8dba828a178ea9af4277d0d4a7.zip |
auto merge of #5153 : cyndis/servo/check-font-result, r=jdm
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
Diffstat (limited to 'components/script/dom')
0 files changed, 0 insertions, 0 deletions