File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Libraries/LibWeb/CSS/StyleValues Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -27,8 +27,17 @@ ValueComparingNonnullRefPtr<StyleValue const> StyleValueList::absolutized(Comput
2727 StyleValueVector absolutized_style_values;
2828 absolutized_style_values.ensure_capacity (m_properties.values .size ());
2929
30- for (auto const & value : m_properties.values )
30+ bool any_absolutized = false ;
31+
32+ for (auto const & value : m_properties.values ) {
33+ auto absolutized_style_value = value->absolutized (computation_context);
34+ if (absolutized_style_value != value)
35+ any_absolutized = true ;
3136 absolutized_style_values.append (value->absolutized (computation_context));
37+ }
38+
39+ if (!any_absolutized)
40+ return *this ;
3241
3342 return StyleValueList::create (move (absolutized_style_values), m_properties.separator );
3443}
You can’t perform that action at this time.
0 commit comments