mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Format remaining files
This commit is contained in:
parent
bf47f90da6
commit
cb07debcb6
252 changed files with 5944 additions and 3744 deletions
|
@ -944,8 +944,10 @@ impl HTMLInputElement {
|
|||
},
|
||||
|
||||
// Step 3.1: it's the "Checkbox" or "Radio Button" and whose checkedness is false.
|
||||
InputType::Radio | InputType::Checkbox => if !self.Checked() || name.is_empty() {
|
||||
return vec![];
|
||||
InputType::Radio | InputType::Checkbox => {
|
||||
if !self.Checked() || name.is_empty() {
|
||||
return vec![];
|
||||
}
|
||||
},
|
||||
|
||||
InputType::File => {
|
||||
|
@ -981,8 +983,10 @@ impl HTMLInputElement {
|
|||
InputType::Image => return vec![], // Unimplemented
|
||||
|
||||
// Step 3.1: it's not the "Image Button" and doesn't have a name attribute.
|
||||
_ => if name.is_empty() {
|
||||
return vec![];
|
||||
_ => {
|
||||
if name.is_empty() {
|
||||
return vec![];
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
|
@ -1280,7 +1284,8 @@ impl VirtualMethods for HTMLInputElement {
|
|||
.map_or(DOMString::from(""), |a| {
|
||||
DOMString::from(a.summarize().value)
|
||||
}),
|
||||
).expect(
|
||||
)
|
||||
.expect(
|
||||
"Failed to set input value on type change to ValueMode::Value.",
|
||||
);
|
||||
self.value_dirty.set(false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue