mirror of
https://github.com/servo/servo.git
synced 2025-08-14 01:45:33 +01:00
stylo: Honor the relevant link visited pref.
MozReview-Commit-ID: D5NiEJUpONQ
This commit is contained in:
parent
04e855c38d
commit
9b2d96f7e7
5 changed files with 20 additions and 2 deletions
|
@ -187,6 +187,13 @@ impl PerDocumentStyleDataImpl {
|
|||
);
|
||||
}
|
||||
|
||||
/// Returns whether private browsing is enabled.
|
||||
pub fn is_private_browsing_enabled(&self) -> bool {
|
||||
let doc =
|
||||
self.stylist.device().pres_context().mDocument.raw::<nsIDocument>();
|
||||
unsafe { bindings::Gecko_IsPrivateBrowsingEnabled(doc) }
|
||||
}
|
||||
|
||||
/// Get the default computed values for this document.
|
||||
pub fn default_computed_values(&self) -> &Arc<ComputedValues> {
|
||||
self.stylist.device().default_computed_values_arc()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue