Created
June 21, 2017 21:48
-
-
Save jyc/beb7262db836acd3630adf6bc6f6bb8e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/servo/components/style/stylist.rs b/servo/components/style/stylist.rs | |
--- a/servo/components/style/stylist.rs | |
+++ b/servo/components/style/stylist.rs | |
@@ -159,16 +159,20 @@ pub struct Stylist { | |
/// The total number of selectors. | |
num_selectors: usize, | |
/// The total number of declarations. | |
num_declarations: usize, | |
/// The total number of times the stylist has been rebuilt. | |
num_rebuilds: usize, | |
+ | |
+ /// Just trying a list of strings for fun. | |
+ #[allow(dead_code)] | |
+ pub test_list_of_strings: Vec<String>, | |
} | |
/// This struct holds data which user of Stylist may want to extract | |
/// from stylesheets which can be done at the same time as updating. | |
#[cfg(feature = "gecko")] | |
pub struct ExtraStyleData<'a> { | |
/// A list of effective font-face rules and their origin. | |
pub font_faces: &'a mut Vec<(Arc<Locked<FontFaceRule>>, Origin)>, | |
@@ -253,16 +257,18 @@ impl Stylist { | |
attribute_dependencies: BloomFilter::new(), | |
style_attribute_dependency: false, | |
state_dependencies: ElementState::empty(), | |
mapped_ids: BloomFilter::new(), | |
selectors_for_cache_revalidation: SelectorMap::new(), | |
num_selectors: 0, | |
num_declarations: 0, | |
num_rebuilds: 0, | |
+ | |
+ test_list_of_strings: Vec::new(), | |
}; | |
SelectorImpl::each_eagerly_cascaded_pseudo_element(|pseudo| { | |
stylist.pseudos_map.insert(pseudo, PerPseudoElementSelectorMap::new()); | |
}); | |
// FIXME: Add iso-8859-9.css when the document’s encoding is ISO-8859-8. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment