mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02: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:
committed by
Jelle Raaijmakers
parent
33a8fbd22c
commit
d3f40e9a72
Notes:
github-actions[bot]
2025-10-10 07:05:07 +00:00
Author: https://github.com/kalenikaliaksandr Commit: https://github.com/LadybirdBrowser/ladybird/commit/d3f40e9a726 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6433 Reviewed-by: https://github.com/gmta ✅
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user