summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Painting
diff options
context:
space:
mode:
authorTimothy Flynn <trflynn89@pm.me>2023-04-17 07:31:00 -0400
committerAndreas Kling <kling@serenityos.org>2023-04-18 16:30:02 +0200
commit6131e621d643caffe3837560eeca31712a3a2a47 (patch)
treee72d7f4a6f542716f9ff32e9ff57c03a04ca8970 /Userland/Libraries/LibWeb/Painting
parent19cc1327af31ead81782b97f3ba83c115a6db6aa (diff)
downloadserenity-6131e621d643caffe3837560eeca31712a3a2a47.zip
LibWeb: Render HTMLVideoElement controls when scripting is disabled
The spec recommends exposing the user agent interface when scripting is disabled on the media element.
Diffstat (limited to 'Userland/Libraries/LibWeb/Painting')
-rw-r--r--Userland/Libraries/LibWeb/Painting/VideoPaintable.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/Painting/VideoPaintable.cpp b/Userland/Libraries/LibWeb/Painting/VideoPaintable.cpp
index 3bef49d420..8dd1b571cd 100644
--- a/Userland/Libraries/LibWeb/Painting/VideoPaintable.cpp
+++ b/Userland/Libraries/LibWeb/Painting/VideoPaintable.cpp
@@ -74,7 +74,7 @@ void VideoPaintable::paint(PaintContext& context, PaintPhase phase) const
if (layout_mouse_position.has_value() && document().hovered_node() == &video_element)
mouse_position = context.rounded_device_point(*layout_mouse_position);
- auto paint_user_agent_controls = video_element.has_attribute(HTML::AttributeNames::controls);
+ auto paint_user_agent_controls = video_element.has_attribute(HTML::AttributeNames::controls) || video_element.is_scripting_disabled();
if (auto const& bitmap = layout_box().dom_node().current_frame()) {
context.painter().draw_scaled_bitmap(video_rect.to_type<int>(), *bitmap, bitmap->rect(), 1.0f, to_gfx_scaling_mode(computed_values().image_rendering()));