LibWeb: Correct the early exit condition in AudioPaintable::paint()

We're not painting controls for audio elements that are supposed to
have them!
This commit is contained in:
Zaggy1024 2025-11-03 12:28:51 -06:00 committed by Gregory Bertilson
parent 2880d40dfb
commit f3a2207bc8
Notes: github-actions[bot] 2025-11-03 19:26:05 +00:00

View file

@ -35,7 +35,7 @@ void AudioPaintable::paint(DisplayListRecordingContext& context, PaintPhase phas
return;
auto const& audio_element = as<HTML::HTMLAudioElement const>(*dom_node());
if (audio_element.should_paint())
if (!audio_element.should_paint())
return;
Base::paint(context, phase);