@@ -1959,33 +1959,29 @@ void StyleComputer::compute_font(ComputedProperties& style, Optional<DOM::Abstra
19591959
19601960 auto const & font_size_specified_value = style.property (PropertyID::FontSize, ComputedProperties::WithAnimationsApplied::No);
19611961
1962- style.set_property (
1962+ style.set_property_without_modifying_flags (
19631963 PropertyID::FontSize,
1964- compute_font_size (font_size_specified_value, style.math_depth (), inherited_font_size, inherited_math_depth, font_computation_context),
1965- style.is_property_inherited (PropertyID::FontSize) ? ComputedProperties::Inherited::Yes : ComputedProperties::Inherited::No);
1964+ compute_font_size (font_size_specified_value, style.math_depth (), inherited_font_size, inherited_math_depth, font_computation_context));
19661965
19671966 auto inherited_font_weight = inheritance_parent_has_computed_properties ? inheritance_parent->computed_properties ()->font_weight () : InitialValues::font_weight ();
19681967
19691968 auto const & font_weight_specified_value = style.property (PropertyID::FontWeight, ComputedProperties::WithAnimationsApplied::No);
19701969
1971- style.set_property (
1970+ style.set_property_without_modifying_flags (
19721971 PropertyID::FontWeight,
1973- compute_font_weight (font_weight_specified_value, inherited_font_weight, font_computation_context),
1974- style.is_property_inherited (PropertyID::FontWeight) ? ComputedProperties::Inherited::Yes : ComputedProperties::Inherited::No);
1972+ compute_font_weight (font_weight_specified_value, inherited_font_weight, font_computation_context));
19751973
19761974 auto const & font_width_specified_value = style.property (PropertyID::FontWidth, ComputedProperties::WithAnimationsApplied::No);
19771975
1978- style.set_property (
1976+ style.set_property_without_modifying_flags (
19791977 PropertyID::FontWidth,
1980- compute_font_width (font_width_specified_value, font_computation_context),
1981- style.is_property_inherited (PropertyID::FontWidth) ? ComputedProperties::Inherited::Yes : ComputedProperties::Inherited::No);
1978+ compute_font_width (font_width_specified_value, font_computation_context));
19821979
19831980 auto const & font_style_specified_value = style.property (PropertyID::FontStyle, ComputedProperties::WithAnimationsApplied::No);
19841981
1985- style.set_property (
1982+ style.set_property_without_modifying_flags (
19861983 PropertyID::FontStyle,
1987- compute_font_style (font_style_specified_value, font_computation_context),
1988- style.is_property_inherited (PropertyID::FontStyle) ? ComputedProperties::Inherited::Yes : ComputedProperties::Inherited::No);
1984+ compute_font_style (font_style_specified_value, font_computation_context));
19891985
19901986 auto const & font_family = style.property (CSS::PropertyID::FontFamily);
19911987
@@ -2014,10 +2010,9 @@ void StyleComputer::compute_font(ComputedProperties& style, Optional<DOM::Abstra
20142010
20152011 auto const & line_height_specified_value = style.property (CSS::PropertyID::LineHeight, ComputedProperties::WithAnimationsApplied::No);
20162012
2017- style.set_property (
2013+ style.set_property_without_modifying_flags (
20182014 PropertyID::LineHeight,
2019- compute_line_height (line_height_specified_value, line_height_computation_context),
2020- style.is_property_inherited (PropertyID::LineHeight) ? ComputedProperties::Inherited::Yes : ComputedProperties::Inherited::No);
2015+ compute_line_height (line_height_specified_value, line_height_computation_context));
20212016
20222017 if (abstract_element.has_value () && is<HTML::HTMLHtmlElement>(abstract_element->element ())) {
20232018 const_cast <StyleComputer&>(*this ).m_root_element_font_metrics = calculate_root_element_font_metrics (style);
@@ -2096,9 +2091,7 @@ void StyleComputer::compute_property_values(ComputedProperties& style, Optional<
20962091 style.for_each_property ([&](PropertyID property_id, auto & specified_value) {
20972092 auto const & computed_value = compute_value_of_property (property_id, specified_value, get_property_specified_value, computation_context, m_document->page ().client ().device_pixels_per_css_pixel ());
20982093
2099- auto const & is_inherited = style.is_property_inherited (property_id) ? ComputedProperties::Inherited::Yes : ComputedProperties::Inherited::No;
2100-
2101- style.set_property (property_id, computed_value, is_inherited);
2094+ style.set_property_without_modifying_flags (property_id, computed_value);
21022095 });
21032096
21042097 style.set_display_before_box_type_transformation (style.display ());
0 commit comments