LibWeb: Delete AudioPaintable::layout_box()

No need for this method when we could reach into DOM node directly from
Paintable.
This commit is contained in:
Aliaksandr Kalenik 2025-10-10 03:46:19 +02:00 committed by Jelle Raaijmakers
commit d3f40e9a72
Notes: github-actions[bot] 2025-10-10 07:05:07 +00:00
6 changed files with 10 additions and 25 deletions

View file

@ -47,6 +47,11 @@ Layout::AudioBox* HTMLAudioElement::layout_node()
return static_cast<Layout::AudioBox*>(Node::layout_node());
}
bool HTMLAudioElement::should_paint() const
{
return has_attribute(HTML::AttributeNames::controls) || is_scripting_disabled();
}
Layout::AudioBox const* HTMLAudioElement::layout_node() const
{
return static_cast<Layout::AudioBox const*>(Node::layout_node());