From a51b4e754cd572a6d9d303d3be738f3c32abe118 Mon Sep 17 00:00:00 2001 From: Mats Palmgren Date: Sun, 28 Oct 2018 23:00:13 +0100 Subject: [PATCH] style: Force line-height:normal for themed comboboxes for compat with other UAs. Bug: 1501908 Reviewed-by: emilio --- components/style/style_adjuster.rs | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/components/style/style_adjuster.rs b/components/style/style_adjuster.rs index 7c65798286e3..bf5752e6ea79 100644 --- a/components/style/style_adjuster.rs +++ b/components/style/style_adjuster.rs @@ -9,8 +9,10 @@ use app_units::Au; use dom::TElement; use properties::{self, ComputedValues, StyleBuilder}; use properties::computed_value_flags::ComputedValueFlags; +use properties::longhands::_moz_appearance::computed_value::T as Appearance; use properties::longhands::display::computed_value::T as Display; use properties::longhands::float::computed_value::T as Float; +use properties::longhands::line_height::computed_value::T as LineHeight; use properties::longhands::overflow_x::computed_value::T as Overflow; use properties::longhands::position::computed_value::T as Position; @@ -694,6 +696,28 @@ impl<'a, 'b: 'a> StyleAdjuster<'a, 'b> { .set_computed_justify_items(parent_justify_items.computed); } + /// If '-webkit-appearance' is 'menulist' on a