mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-05 09:52:54 +00:00
LibWeb: Remove ElementInlineCSSStyleDeclaration entirely
All of its behavior has now been moved up into its parent classes.
This commit is contained in:
parent
50455c2f5e
commit
687d32b712
Notes:
github-actions[bot]
2025-03-19 13:54:28 +00:00
Author: https://github.com/AtkinsSJ
Commit: 687d32b712
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3983
7 changed files with 46 additions and 83 deletions
|
@ -921,7 +921,7 @@ void Element::set_shadow_root(GC::Ptr<ShadowRoot> shadow_root)
|
|||
CSS::CSSStyleDeclaration* Element::style_for_bindings()
|
||||
{
|
||||
if (!m_inline_style)
|
||||
m_inline_style = CSS::ElementInlineCSSStyleDeclaration::create(*this, {}, {});
|
||||
m_inline_style = CSS::PropertyOwningCSSStyleDeclaration::create_element_inline_style(realm(), *this, {}, {});
|
||||
return m_inline_style;
|
||||
}
|
||||
|
||||
|
@ -3524,7 +3524,7 @@ void Element::attribute_changed(FlyString const& local_name, Optional<String> co
|
|||
if (m_inline_style && m_inline_style->is_updating())
|
||||
return;
|
||||
if (!m_inline_style)
|
||||
m_inline_style = CSS::ElementInlineCSSStyleDeclaration::create(*this, {}, {});
|
||||
m_inline_style = CSS::PropertyOwningCSSStyleDeclaration::create_element_inline_style(realm(), *this, {}, {});
|
||||
m_inline_style->set_declarations_from_text(*value);
|
||||
set_needs_style_update(true);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue