Bug 1394551 - stylo: Don't convert property declarations to lowercase r?xidorn
Property declarations are already being converted to lowercase inside
gfxFontFeatureValueSet::AppendFeatureValueHashEntry and there is no point
of doing it twice.
MozReview-Commit-ID: I59w1RC4bKK
--- a/servo/components/style/stylesheets/font_feature_values_rule.rs
+++ b/servo/components/style/stylesheets/font_feature_values_rule.rs
@@ -203,17 +203,17 @@ impl<'a, 'b, 'i, T> DeclarationParser<'i
{
type Declaration = ();
type Error = SelectorParseError<'i, StyleParseError<'i>>;
fn parse_value<'t>(&mut self, name: CowRcStr<'i>, input: &mut Parser<'i, 't>)
-> Result<(), ParseError<'i>> {
let value = input.parse_entirely(|i| T::parse(self.context, i))?;
let new = FFVDeclaration {
- name: Atom::from(&*name).to_ascii_lowercase(),
+ name: Atom::from(&*name),
value: value,
};
update_or_push(&mut self.declarations, new);
Ok(())
}
}
macro_rules! font_feature_values_blocks {