mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +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
|
@ -419,12 +419,12 @@ impl VirtualMethods for HTMLSelectElement {
|
|||
|
||||
fn attribute_mutated(&self, attr: &Attr, mutation: AttributeMutation) {
|
||||
self.super_type().unwrap().attribute_mutated(attr, mutation);
|
||||
match attr.local_name() {
|
||||
&local_name!("required") => {
|
||||
match *attr.local_name() {
|
||||
local_name!("required") => {
|
||||
self.validity_state()
|
||||
.perform_validation_and_update(ValidationFlags::VALUE_MISSING);
|
||||
},
|
||||
&local_name!("disabled") => {
|
||||
local_name!("disabled") => {
|
||||
let el = self.upcast::<Element>();
|
||||
match mutation {
|
||||
AttributeMutation::Set(_) => {
|
||||
|
@ -441,7 +441,7 @@ impl VirtualMethods for HTMLSelectElement {
|
|||
self.validity_state()
|
||||
.perform_validation_and_update(ValidationFlags::VALUE_MISSING);
|
||||
},
|
||||
&local_name!("form") => {
|
||||
local_name!("form") => {
|
||||
self.form_attribute_mutated(mutation);
|
||||
},
|
||||
_ => {},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue