diff --git a/components/style/gecko/wrapper.rs b/components/style/gecko/wrapper.rs index 262e7f3018d..cbfc8924e25 100644 --- a/components/style/gecko/wrapper.rs +++ b/components/style/gecko/wrapper.rs @@ -626,6 +626,7 @@ impl<'le> PresentationalHintsSynthetizer for GeckoElement<'le> { { use properties::longhands::text_align::SpecifiedValue as SpecifiedTextAlign; use properties::longhands::color::SpecifiedValue as SpecifiedColor; + use properties::longhands::_x_lang::SpecifiedValue as SpecifiedLang; use values::specified::color::Color; lazy_static! { static ref TH_RULE: ApplicableDeclarationBlock = { @@ -646,16 +647,30 @@ impl<'le> PresentationalHintsSynthetizer for GeckoElement<'le> { let arc = Arc::new(global_style_data.shared_lock.wrap(pdb)); ApplicableDeclarationBlock::from_declarations(arc, ServoCascadeLevel::PresHints) }; + static ref MATHML_LANG_RULE: ApplicableDeclarationBlock = { + let global_style_data = &*GLOBAL_STYLE_DATA; + let pdb = PropertyDeclarationBlock::with_one( + PropertyDeclaration::XLang(SpecifiedLang(atom!("x-math"))), + Importance::Normal + ); + let arc = Arc::new(global_style_data.shared_lock.wrap(pdb)); + ApplicableDeclarationBlock::from_declarations(arc, ServoCascadeLevel::PresHints) + }; }; + let ns = self.get_namespace(); //