aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlinputelement.rs
diff options
context:
space:
mode:
authorDanila Matveev <usurname.r@gmail.com>2024-07-17 20:46:32 +0400
committerGitHub <noreply@github.com>2024-07-17 16:46:32 +0000
commite4ad1d3ab97a10892dc3dca28bbd7ab06da94e07 (patch)
tree436839fce3244246b92cc6f2c6ed1833c7ec093e /components/script/dom/htmlinputelement.rs
parent882a855b8c71d461ab14c2953a2b574861fba5d2 (diff)
downloadservo-e4ad1d3ab97a10892dc3dca28bbd7ab06da94e07.tar.gz
servo-e4ad1d3ab97a10892dc3dca28bbd7ab06da94e07.zip
[clippy] Rename enum FormSubmitter and its elements (#32791)
* [clippy] Renames enum FormSubmitter and its elements Signed-off-by: Danila Matveev <usurname.r@gmail.com> * fmt Signed-off-by: Danila Matveev <usurname.r@gmail.com> --------- Signed-off-by: Danila Matveev <usurname.r@gmail.com>
Diffstat (limited to 'components/script/dom/htmlinputelement.rs')
-rwxr-xr-xcomponents/script/dom/htmlinputelement.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/components/script/dom/htmlinputelement.rs b/components/script/dom/htmlinputelement.rs
index 6a78e075039..a0f17a9871f 100755
--- a/components/script/dom/htmlinputelement.rs
+++ b/components/script/dom/htmlinputelement.rs
@@ -59,7 +59,7 @@ use crate::dom::htmldatalistelement::HTMLDataListElement;
use crate::dom::htmlelement::HTMLElement;
use crate::dom::htmlfieldsetelement::HTMLFieldSetElement;
use crate::dom::htmlformelement::{
- FormControl, FormDatum, FormDatumValue, FormSubmitter, HTMLFormElement, ResetFrom,
+ FormControl, FormDatum, FormDatumValue, FormSubmitterElement, HTMLFormElement, ResetFrom,
SubmittedFrom,
};
use crate::dom::keyboardevent::KeyboardEvent;
@@ -1679,7 +1679,7 @@ impl HTMLInputElement {
/// Steps range from 5.1 to 5.10 (specific to HTMLInputElement)
pub fn form_datums(
&self,
- submitter: Option<FormSubmitter>,
+ submitter: Option<FormSubmitterElement>,
encoding: Option<&'static Encoding>,
) -> Vec<FormDatum> {
// 3.1: disabled state check is in get_unclean_dataset
@@ -1690,7 +1690,7 @@ impl HTMLInputElement {
// Step 5.4
let name = self.Name();
let is_submitter = match submitter {
- Some(FormSubmitter::InputElement(s)) => self == s,
+ Some(FormSubmitterElement::Input(s)) => self == s,
_ => false,
};
@@ -2107,7 +2107,7 @@ impl HTMLInputElement {
// lazily test for > 1 submission-blocking inputs
return;
}
- form.submit(SubmittedFrom::NotFromForm, FormSubmitter::FormElement(form));
+ form.submit(SubmittedFrom::NotFromForm, FormSubmitterElement::Form(form));
},
}
}
@@ -2821,7 +2821,7 @@ impl Activatable for HTMLInputElement {
if let Some(o) = self.form_owner() {
o.submit(
SubmittedFrom::NotFromForm,
- FormSubmitter::InputElement(self),
+ FormSubmitterElement::Input(self),
)
}
},