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")]
|
||||
#[inline]
|
||||
fn allow_frames_timing() -> bool {
|
||||
use gecko_bindings::bindings;
|
||||
unsafe { bindings::Gecko_IsFramesTimingEnabled() }
|
||||
use gecko_bindings::structs::mozilla;
|
||||
unsafe { mozilla::StylePrefs_sFramesTimingFunctionEnabled }
|
||||
}
|
||||
|
||||
#[cfg(feature = "servo")]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue