From 7a9b917c4fd587b5da6d522f631773795c252e05 Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Wed, 8 Jan 2014 13:43:30 +0000 Subject: [PATCH] Remove some trailing whitespace. --- src/components/style/selector_matching.rs | 10 +++++----- src/components/style/selectors.rs | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/components/style/selector_matching.rs b/src/components/style/selector_matching.rs index f949b2b8221..7fc6c72eccc 100644 --- a/src/components/style/selector_matching.rs +++ b/src/components/style/selector_matching.rs @@ -120,7 +120,7 @@ impl SelectorMap { N:TNode>( node: &N, pseudo_element: Option, - hash: &HashMap<~str,~[Rule]>, + hash: &HashMap<~str,~[Rule]>, key: &str, matching_rules: &mut ~[Rule]) { match hash.find(&key.to_str()) { @@ -130,7 +130,7 @@ impl SelectorMap { None => {} } } - + /// Adds rules in `rules` that match `node` to the `matching_rules` list. fn get_matching_rules>( @@ -310,7 +310,7 @@ impl Stylist { assert!(element.is_element()); assert!(style_attribute.is_none() || self.pseudo_element.is_none(), "Style attributes do not apply to pseudo-elements"); - + // In cascading order: let rule_map_list = [ &self.ua_rule_map.normal, @@ -332,7 +332,7 @@ impl Stylist { rule_map_indices[i] = matching_rules_list.len(); rule_map.get_all_matching_rules(element, self.pseudo_element, &mut matching_rules_list); } - + let count = matching_rules_list.len(); let mut declaration_iter = matching_rules_list.move_iter().map(|rule| { @@ -373,7 +373,7 @@ impl Stylist { applicable_declarations } - + pub fn get_pseudo_element(&self) -> Option { self.pseudo_element } diff --git a/src/components/style/selectors.rs b/src/components/style/selectors.rs index 3935121fadc..b54d17967f3 100644 --- a/src/components/style/selectors.rs +++ b/src/components/style/selectors.rs @@ -310,7 +310,7 @@ fn parse_one_simple_selector(iter: &mut Iter, namespaces: &NamespaceMap, inside_ Some(Ident(name)) => match parse_simple_pseudo_class(name) { None => { // FIXME: Workaround for https://github.com/mozilla/rust/issues/10683 - let name_lower = name.to_ascii_lower(); + let name_lower = name.to_ascii_lower(); match name_lower.as_slice() { // Supported CSS 2.1 pseudo-elements only. // ** Do not add to this list! ** @@ -470,7 +470,7 @@ fn parse_functional_pseudo_class(name: ~str, arguments: ~[ComponentValue], namespaces: &NamespaceMap, inside_negation: bool) -> Option { // FIXME: Workaround for https://github.com/mozilla/rust/issues/10683 - let name_lower = name.to_ascii_lower(); + let name_lower = name.to_ascii_lower(); match name_lower.as_slice() { // "lang" => parse_lang(arguments), "nth-child" => parse_nth(arguments).map(|(a, b)| NthChild(a, b)), @@ -485,7 +485,7 @@ fn parse_functional_pseudo_class(name: ~str, arguments: ~[ComponentValue], fn parse_pseudo_element(name: ~str) -> Option { // FIXME: Workaround for https://github.com/mozilla/rust/issues/10683 - let name_lower = name.to_ascii_lower(); + let name_lower = name.to_ascii_lower(); match name_lower.as_slice() { // All supported pseudo-elements "before" => Some(Before),