mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-01 20:17:13 +02:00
LibWeb: Draw a speaker on media elements to toggle muting audio
This commit is contained in:
committed by
Andreas Kling
parent
1107cb58c0
commit
a4cb3b5d4d
Notes:
sideshowbarker
2024-07-17 10:31:19 +09:00
Author: https://github.com/trflynn89 Commit: https://github.com/SerenityOS/serenity/commit/a4cb3b5d4d Pull-request: https://github.com/SerenityOS/serenity/pull/19409
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user