LibWeb: Make element_reference optional in create_resolved_style

This commit is contained in:
Callum Law 2025-06-09 14:08:05 +12:00 committed by Tim Ledbetter
parent 610ad25555
commit fc46abb83f
Notes: github-actions[bot] 2025-06-09 11:29:50 +00:00
5 changed files with 7 additions and 8 deletions

View file

@ -775,7 +775,7 @@ CSS::RequiredInvalidationAfterStyleChange Element::recompute_inherited_style()
GC::Ref<CSS::ComputedProperties> Element::resolved_css_values(Optional<CSS::PseudoElement> type)
{
auto element_computed_style = CSS::CSSStyleProperties::create_resolved_style({ *this, type });
auto element_computed_style = CSS::CSSStyleProperties::create_resolved_style(realm(), ElementReference { *this, type });
auto properties = heap().allocate<CSS::ComputedProperties>();
for (auto i = to_underlying(CSS::first_property_id); i <= to_underlying(CSS::last_property_id); ++i) {