stylo: Fix nsCOMPtr release bindings.

This commit is contained in:
Emilio Cobos Álvarez 2017-05-08 22:07:12 +02:00
parent 81f273b66f
commit 29c52cc61b
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
4 changed files with 13 additions and 9 deletions

View file

@ -695,7 +695,7 @@ ${helpers.single_keyword_system("font-variant-caps",
#[inline]
fn to_computed_value(&self, cx: &Context) -> computed_value::T {
use gecko_bindings::bindings::Gecko_GetBaseSize;
use gecko_bindings::structs;
use gecko_bindings::structs::{self, nsIAtom};
use values::specified::length::au_to_int_px;
// Data from nsRuleNode.cpp in Gecko
// Mapping from base size and HTML size to pixels
@ -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(), &mut |atom| {
let base_size = unsafe { Atom::with(gecko_font.mLanguage.raw::<nsIAtom>(), &mut |atom| {
cx.font_metrics_provider.get_size(atom, gecko_font.mGenericID).0
}) };