mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
style: Read visited links pref directly.
This commit is contained in:
parent
e61a4d04e9
commit
509007febb
1 changed files with 2 additions and 3 deletions
|
@ -8,8 +8,7 @@ use atomic_refcell::{AtomicRef, AtomicRefCell, AtomicRefMut};
|
|||
use dom::TElement;
|
||||
use gecko_bindings::bindings::{self, RawServoStyleSet};
|
||||
use gecko_bindings::structs::{RawGeckoPresContextOwned, ServoStyleSetSizes, ServoStyleSheet};
|
||||
use gecko_bindings::structs::{StyleSheetInfo, ServoStyleSheetInner};
|
||||
use gecko_bindings::structs::nsIDocument;
|
||||
use gecko_bindings::structs::{StyleSheetInfo, ServoStyleSheetInner, nsIDocument, self};
|
||||
use gecko_bindings::sugar::ownership::{HasArcFFI, HasBoxFFI, HasFFI, HasSimpleFFI};
|
||||
use invalidation::media_queries::{MediaListKey, ToMediaListKey};
|
||||
use malloc_size_of::MallocSizeOfOps;
|
||||
|
@ -178,7 +177,7 @@ impl PerDocumentStyleDataImpl {
|
|||
|
||||
/// Returns whether visited links are enabled.
|
||||
fn visited_links_enabled(&self) -> bool {
|
||||
unsafe { bindings::Gecko_AreVisitedLinksEnabled() }
|
||||
unsafe { structs::StylePrefs_sVisitedLinksEnabled }
|
||||
}
|
||||
/// Returns whether visited styles are enabled.
|
||||
pub fn visited_styles_enabled(&self) -> bool {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue