LibWeb: Make Element::inline_style() return specific declaration type

This removes a bunch of RTTI checks in StyleComputer.
This commit is contained in:
Andreas Kling 2024-03-18 20:06:36 +01:00
commit 4679dbc9df
Notes: sideshowbarker 2024-07-16 22:14:49 +09:00
3 changed files with 4 additions and 9 deletions

View file

@ -443,11 +443,6 @@ JS::GCPtr<Layout::Node> Element::create_layout_node_for_display_type(DOM::Docume
return document.heap().allocate_without_realm<Layout::InlineNode>(document, element, move(style));
}
CSS::CSSStyleDeclaration const* Element::inline_style() const
{
return m_inline_style.ptr();
}
void Element::run_attribute_change_steps(FlyString const& local_name, Optional<String> const& old_value, Optional<String> const& value, Optional<FlyString> const& namespace_)
{
attribute_change_steps(local_name, old_value, value, namespace_);