mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Have check_allowed_in read gPropertyEabled table directly.
This commit is contained in:
parent
ef2d48dbcc
commit
5be5d493df
2 changed files with 2 additions and 4 deletions
|
@ -1418,9 +1418,6 @@ extern "C" {
|
||||||
pub fn Gecko_ReleaseCSSValueSharedListArbitraryThread(aPtr:
|
pub fn Gecko_ReleaseCSSValueSharedListArbitraryThread(aPtr:
|
||||||
*mut nsCSSValueSharedList);
|
*mut nsCSSValueSharedList);
|
||||||
}
|
}
|
||||||
extern "C" {
|
|
||||||
pub fn Gecko_PropertyId_IsPrefEnabled(id: nsCSSPropertyID) -> bool;
|
|
||||||
}
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
pub fn Gecko_nsStyleFont_SetLang(font: *mut nsStyleFont,
|
pub fn Gecko_nsStyleFont_SetLang(font: *mut nsStyleFont,
|
||||||
atom: *mut nsIAtom);
|
atom: *mut nsIAtom);
|
||||||
|
|
|
@ -1184,8 +1184,9 @@ impl PropertyId {
|
||||||
}
|
}
|
||||||
% endif
|
% endif
|
||||||
% if product == "gecko":
|
% if product == "gecko":
|
||||||
|
use gecko_bindings::structs;
|
||||||
let id = self.to_nscsspropertyid().unwrap();
|
let id = self.to_nscsspropertyid().unwrap();
|
||||||
unsafe { bindings::Gecko_PropertyId_IsPrefEnabled(id) }
|
unsafe { structs::nsCSSProps_gPropertyEnabled[id as usize] }
|
||||||
% endif
|
% endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue