mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-27 10:29:23 +00:00
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:
parent
33a8fbd22c
commit
d3f40e9a72
Notes:
github-actions[bot]
2025-10-10 07:05:07 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: d3f40e9a72
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6433
Reviewed-by: https://github.com/gmta ✅
6 changed files with 10 additions and 25 deletions
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue