Skip to content

Commit

Permalink
Have check_allowed_in read gPropertyEabled table directly.
Browse files Browse the repository at this point in the history
  • Loading branch information
upsuper committed Jul 29, 2017
1 parent ef2d48d commit 5be5d49
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 0 additions & 3 deletions components/style/gecko/generated/bindings.rs
Expand Up @@ -1418,9 +1418,6 @@ extern "C" {
pub fn Gecko_ReleaseCSSValueSharedListArbitraryThread(aPtr:
*mut nsCSSValueSharedList);
}
extern "C" {
pub fn Gecko_PropertyId_IsPrefEnabled(id: nsCSSPropertyID) -> bool;
}
extern "C" {
pub fn Gecko_nsStyleFont_SetLang(font: *mut nsStyleFont,
atom: *mut nsIAtom);
Expand Down
3 changes: 2 additions & 1 deletion components/style/properties/properties.mako.rs
Expand Up @@ -1184,8 +1184,9 @@ impl PropertyId {
}
% endif
% if product == "gecko":
use gecko_bindings::structs;
let id = self.to_nscsspropertyid().unwrap();
unsafe { bindings::Gecko_PropertyId_IsPrefEnabled(id) }
unsafe { structs::nsCSSProps_gPropertyEnabled[id as usize] }
% endif
};

Expand Down

0 comments on commit 5be5d49

Please sign in to comment.