mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Remove some trailing whitespace.
This commit is contained in:
parent
99157c6412
commit
7a9b917c4f
2 changed files with 8 additions and 8 deletions
|
@ -120,7 +120,7 @@ impl SelectorMap {
|
|||
N:TNode<E>>(
|
||||
node: &N,
|
||||
pseudo_element: Option<PseudoElement>,
|
||||
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<E:TElement,
|
||||
N:TNode<E>>(
|
||||
|
@ -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<PseudoElement> {
|
||||
self.pseudo_element
|
||||
}
|
||||
|
|
|
@ -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<SimpleSelector> {
|
||||
// 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<PseudoElement> {
|
||||
// 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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue