diff --git a/components/style/selector_map.rs b/components/style/selector_map.rs index 193196c488a..feba256584b 100644 --- a/components/style/selector_map.rs +++ b/components/style/selector_map.rs @@ -403,10 +403,12 @@ impl SelectorMap { /// /// The first non-None value returned from |f| is returned. #[inline(always)] -fn find_from_left(mut iter: SelectorIter, - mut f: F) - -> Option - where F: FnMut(&Component) -> Option, +fn find_from_left( + mut iter: SelectorIter, + mut f: F +) -> Option +where + F: FnMut(&Component) -> Option, { for ss in &mut iter { if let Some(r) = f(ss) { @@ -432,8 +434,6 @@ fn find_from_left(mut iter: SelectorIter, pub fn get_id_name(iter: SelectorIter) -> Option { find_from_left(iter, |ss| { - // TODO(pradeep): Implement case-sensitivity based on the - // document type and quirks mode. if let Component::ID(ref id) = *ss { return Some(id.clone()); } @@ -446,8 +446,6 @@ pub fn get_id_name(iter: SelectorIter) pub fn get_class_name(iter: SelectorIter) -> Option { find_from_left(iter, |ss| { - // TODO(pradeep): Implement case-sensitivity based on the - // document type and quirks mode. if let Component::Class(ref class) = *ss { return Some(class.clone()); }