mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:27:35 +00:00
LibWeb: Draw a speaker on media elements to toggle muting audio
This commit is contained in:
parent
1107cb58c0
commit
a4cb3b5d4d
4 changed files with 68 additions and 0 deletions
|
@ -389,6 +389,9 @@ void HTMLMediaElement::volume_or_muted_attribute_changed()
|
|||
|
||||
// FIXME: Then, if the media element is not allowed to play, the user agent must run the internal pause steps for the media element.
|
||||
|
||||
if (auto* layout_node = this->layout_node())
|
||||
layout_node->set_needs_display();
|
||||
|
||||
on_volume_change();
|
||||
}
|
||||
|
||||
|
|
|
@ -103,6 +103,7 @@ public:
|
|||
Optional<CSSPixelRect> control_box_rect;
|
||||
Optional<CSSPixelRect> playback_button_rect;
|
||||
Optional<CSSPixelRect> timeline_rect;
|
||||
Optional<CSSPixelRect> speaker_button_rect;
|
||||
};
|
||||
CachedLayoutBoxes& cached_layout_boxes(Badge<Painting::MediaPaintable>) const { return m_layout_boxes; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue