servo: Merge #17829 - style: Mention when visited styles may be disabled (from emilio:visited-nit); r=Manishearth
authorEmilio Cobos Álvarez <emilio@crisal.io>
Sun, 23 Jul 2017 15:06:44 -0700
changeset 419191 06e19157c17ef017ac85b7515314499b54b33f32
parent 419190 60566dab0b5931f51e3df92b56554ac7c8cac015
child 419192 25aa6acbfce4c91118913083857ebc6805095dad
push id7566
push usermtabara@mozilla.com
push dateWed, 02 Aug 2017 08:25:16 +0000
treeherdermozilla-beta@86913f512c3c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersManishearth
milestone56.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
servo: Merge #17829 - style: Mention when visited styles may be disabled (from emilio:visited-nit); r=Manishearth Source-Repo: https://github.com/servo/servo Source-Revision: 104c79dbf2fc83d3b4b36dfa8868b2071edf2d81
servo/components/style/context.rs
--- a/servo/components/style/context.rs
+++ b/servo/components/style/context.rs
@@ -113,16 +113,19 @@ impl Default for StyleSystemOptions {
 ///
 /// There's exactly one of these during a given restyle traversal, and it's
 /// shared among the worker threads.
 pub struct SharedStyleContext<'a> {
     /// The CSS selector stylist.
     pub stylist: &'a Stylist,
 
     /// Whether visited styles are enabled.
+    ///
+    /// They may be disabled when Gecko's pref layout.css.visited_links_enabled
+    /// is false, or when in private browsing mode.
     pub visited_styles_enabled: bool,
 
     /// Configuration options.
     pub options: StyleSystemOptions,
 
     /// Guards for pre-acquired locks
     pub guards: StylesheetGuards<'a>,