mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
fixed #25281
This commit is contained in:
parent
7d66871a9f
commit
80b2a87be7
3 changed files with 13 additions and 3 deletions
|
@ -50,7 +50,7 @@ pub enum Condition {
|
|||
}
|
||||
|
||||
impl Condition {
|
||||
fn is_satisfied(&self, cx: JSContext, obj: HandleObject, global: HandleObject) -> bool {
|
||||
pub fn is_satisfied(&self, cx: JSContext, obj: HandleObject, global: HandleObject) -> bool {
|
||||
match *self {
|
||||
Condition::Pref(name) => prefs::pref_map().get(name).as_bool().unwrap_or(false),
|
||||
Condition::Func(f) => f(cx, obj),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue