mirror of
https://github.com/servo/servo.git
synced 2025-06-23 08:34:42 +01:00
Replace IsFramesTimingEnabled FFI function with direct pref cache access.
This commit is contained in:
parent
0c9abac373
commit
d34d662b82
1 changed files with 2 additions and 2 deletions
|
@ -134,8 +134,8 @@ impl<S> OriginComponent<S> {
|
||||||
#[cfg(feature = "gecko")]
|
#[cfg(feature = "gecko")]
|
||||||
#[inline]
|
#[inline]
|
||||||
fn allow_frames_timing() -> bool {
|
fn allow_frames_timing() -> bool {
|
||||||
use gecko_bindings::bindings;
|
use gecko_bindings::structs::mozilla;
|
||||||
unsafe { bindings::Gecko_IsFramesTimingEnabled() }
|
unsafe { mozilla::StylePrefs_sFramesTimingFunctionEnabled }
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(feature = "servo")]
|
#[cfg(feature = "servo")]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue