From 806882394883a5f87cc5e4f56cd635a19f03baca Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Wed, 8 Jan 2014 13:48:43 +0000 Subject: [PATCH] Make SelectorMap private. --- src/components/style/selector_matching.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/style/selector_matching.rs b/src/components/style/selector_matching.rs index 7fc6c72eccc..4cfabfba0b1 100644 --- a/src/components/style/selector_matching.rs +++ b/src/components/style/selector_matching.rs @@ -42,14 +42,14 @@ static SELECTOR_WHITESPACE: &'static [char] = &'static [' ', '\t', '\n', '\r', ' /// Hence, the union of the rules keyed on each of node's classes, ID, /// element name, etc. will contain the Rules that actually match that /// node. -pub struct SelectorMap { +struct SelectorMap { // TODO: Tune the initial capacity of the HashMap // FIXME: Use interned strings - priv id_hash: HashMap<~str, ~[Rule]>, - priv class_hash: HashMap<~str, ~[Rule]>, - priv element_hash: HashMap<~str, ~[Rule]>, + id_hash: HashMap<~str, ~[Rule]>, + class_hash: HashMap<~str, ~[Rule]>, + element_hash: HashMap<~str, ~[Rule]>, // For Rules that don't have ID, class, or element selectors. - priv universal_rules: ~[Rule], + universal_rules: ~[Rule], } impl SelectorMap {