mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
changed match
to 'matches!' (#31850)
This commit is contained in:
parent
9a76dd9325
commit
bd39e03eeb
29 changed files with 185 additions and 229 deletions
|
@ -2425,17 +2425,17 @@ impl VirtualMethods for HTMLMediaElement {
|
|||
fn attribute_mutated(&self, attr: &Attr, mutation: AttributeMutation) {
|
||||
self.super_type().unwrap().attribute_mutated(attr, mutation);
|
||||
|
||||
match attr.local_name() {
|
||||
&local_name!("muted") => {
|
||||
match *attr.local_name() {
|
||||
local_name!("muted") => {
|
||||
self.SetMuted(mutation.new_value(attr).is_some());
|
||||
},
|
||||
&local_name!("src") => {
|
||||
local_name!("src") => {
|
||||
if mutation.new_value(attr).is_none() {
|
||||
return;
|
||||
}
|
||||
self.media_element_load_algorithm();
|
||||
},
|
||||
&local_name!("controls") => {
|
||||
local_name!("controls") => {
|
||||
if mutation.new_value(attr).is_some() {
|
||||
self.render_controls();
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue