mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-06 00:51:51 +00:00
LibWeb/DOM: Rename ElementReference to AbstractElement
This isn't some kind of identifier, it's a handle on an actual Element or PseudoElement.
This commit is contained in:
parent
e7c2f0dd52
commit
ce380a59c7
Notes:
github-actions[bot]
2025-06-19 11:37:42 +00:00
Author: https://github.com/AtkinsSJ
Commit: ce380a59c7
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5132
Reviewed-by: https://github.com/tcl3
10 changed files with 73 additions and 23 deletions
|
@ -4741,7 +4741,7 @@ Optional<NonnullRefPtr<CSS::CSSStyleValue const>> resolved_value(GC::Ref<DOM::No
|
|||
return {};
|
||||
|
||||
// Retrieve resolved style value
|
||||
auto resolved_css_style_declaration = CSS::CSSStyleProperties::create_resolved_style(element->realm(), DOM::ElementReference { static_cast<DOM::Element&>(*element) });
|
||||
auto resolved_css_style_declaration = CSS::CSSStyleProperties::create_resolved_style(element->realm(), DOM::AbstractElement { static_cast<DOM::Element&>(*element) });
|
||||
auto optional_style_property = resolved_css_style_declaration->property(property_id);
|
||||
if (!optional_style_property.has_value())
|
||||
return {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue