mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-15 05:22:04 +00:00
LibWeb: Make element_reference
optional in create_resolved_style
This commit is contained in:
parent
610ad25555
commit
fc46abb83f
Notes:
github-actions[bot]
2025-06-09 11:29:50 +00:00
Author: https://github.com/Calme1709
Commit: fc46abb83f
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5034
Reviewed-by: https://github.com/AtkinsSJ
Reviewed-by: https://github.com/tcl3 ✅
5 changed files with 7 additions and 8 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue