mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
Fix metadata update
This commit is contained in:
parent
f65c400828
commit
35c4c35416
5 changed files with 62 additions and 29 deletions
|
@ -68,7 +68,7 @@ impl MediaMetadataMethods for MediaMetadata {
|
|||
}
|
||||
|
||||
/// https://w3c.github.io/mediasession/#dom-mediametadata-title
|
||||
fn SetTitle(&self, value: DOMString) -> () {
|
||||
fn SetTitle(&self, value: DOMString) {
|
||||
*self.title.borrow_mut() = value;
|
||||
self.queue_update_metadata_algorithm();
|
||||
}
|
||||
|
@ -79,7 +79,7 @@ impl MediaMetadataMethods for MediaMetadata {
|
|||
}
|
||||
|
||||
/// https://w3c.github.io/mediasession/#dom-mediametadata-artist
|
||||
fn SetArtist(&self, value: DOMString) -> () {
|
||||
fn SetArtist(&self, value: DOMString) {
|
||||
*self.artist.borrow_mut() = value;
|
||||
self.queue_update_metadata_algorithm();
|
||||
}
|
||||
|
@ -90,7 +90,7 @@ impl MediaMetadataMethods for MediaMetadata {
|
|||
}
|
||||
|
||||
/// https://w3c.github.io/mediasession/#dom-mediametadata-album
|
||||
fn SetAlbum(&self, value: DOMString) -> () {
|
||||
fn SetAlbum(&self, value: DOMString) {
|
||||
*self.album.borrow_mut() = value;
|
||||
self.queue_update_metadata_algorithm();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue