mirror of
https://github.com/servo/servo.git
synced 2025-08-07 22:45:34 +01:00
Relax the requirement of Atom::with.
This commit is contained in:
parent
9354e90afc
commit
0667287bf6
4 changed files with 4 additions and 4 deletions
|
@ -721,7 +721,7 @@ ${helpers.single_keyword_system("font-variant-caps",
|
|||
// XXXManishearth handle quirks mode
|
||||
|
||||
let ref gecko_font = cx.style().get_font().gecko();
|
||||
let base_size = unsafe { Atom::with(gecko_font.mLanguage.raw::<nsIAtom>(), &mut |atom| {
|
||||
let base_size = unsafe { Atom::with(gecko_font.mLanguage.raw::<nsIAtom>(), |atom| {
|
||||
cx.font_metrics_provider.get_size(atom, gecko_font.mGenericID).0
|
||||
}) };
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue