mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-07 08:39:22 +00:00
LibWeb: Return CSSStyleProperties as a GC::Ref
This commit is contained in:
parent
9b06f66571
commit
2d220a8bbc
Notes:
github-actions[bot]
2025-03-19 13:53:59 +00:00
Author: https://github.com/AtkinsSJ
Commit: 2d220a8bbc
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3983
5 changed files with 6 additions and 6 deletions
|
@ -918,11 +918,11 @@ void Element::set_shadow_root(GC::Ptr<ShadowRoot> shadow_root)
|
|||
invalidate_style(StyleInvalidationReason::ElementSetShadowRoot);
|
||||
}
|
||||
|
||||
CSS::CSSStyleProperties* Element::style_for_bindings()
|
||||
GC::Ref<CSS::CSSStyleProperties> Element::style_for_bindings()
|
||||
{
|
||||
if (!m_inline_style)
|
||||
m_inline_style = CSS::CSSStyleProperties::create_element_inline_style({ *this }, {}, {});
|
||||
return m_inline_style;
|
||||
return *m_inline_style;
|
||||
}
|
||||
|
||||
// https://dom.spec.whatwg.org/#element-html-uppercased-qualified-name
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue