aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/document.rs
diff options
context:
space:
mode:
authorbors-servo <metajack+bors@gmail.com>2015-03-06 10:31:05 -0700
committerbors-servo <metajack+bors@gmail.com>2015-03-06 10:31:05 -0700
commit4bd5aed5005b1a8dba828a178ea9af4277d0d4a7 (patch)
tree5c894b7e58072803a99a196256193e61ee655da4 /components/script/dom/document.rs
parenteda9c0c9ac29646c5b4c9ce30b97c6547345171e (diff)
parent92a4bba7854ebc25598174df3300a3a27101ab28 (diff)
downloadservo-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/document.rs')
0 files changed, 0 insertions, 0 deletions