diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2016-06-04 09:22:34 -0500 |
---|---|---|
committer | bors-servo <lbergstrom+bors@mozilla.com> | 2016-06-04 09:22:34 -0500 |
commit | a8c1cb39713697c12831b38985f1e5a9c576c37c (patch) | |
tree | 830fe042205ab42d74a8b1630c55c48dc0324e72 /components/script/dom/htmlbuttonelement.rs | |
parent | ec869eff19c7012b01db79d6522270a94ddb27d8 (diff) | |
parent | 80aad09ae4eba9a89b518a35774ae9806c1d250a (diff) | |
download | servo-a8c1cb39713697c12831b38985f1e5a9c576c37c.tar.gz servo-a8c1cb39713697c12831b38985f1e5a9c576c37c.zip |
Auto merge of #11605 - rafaqtro:local_r, r=KiChjang,emilio
Rename the variants of the SubmittedFrom and ResetFrom enums to be less repetitive
<!-- Please describe your changes on the following line: -->
delete suffixes for variants SubmittedFrom, ResetFrom
---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [ ] `./mach build -d` does not report any errors
- [ ] `./mach test-tidy` does not report any errors
- [ ] These changes fix #11557 (github issue number if applicable).
<!-- Either: -->
- [ ] There are tests for these changes OR
- [ ] These changes do not require tests because _____
<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11605)
<!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom/htmlbuttonelement.rs')
-rw-r--r-- | components/script/dom/htmlbuttonelement.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/htmlbuttonelement.rs b/components/script/dom/htmlbuttonelement.rs index e15d559cee3..23b9b79cc5d 100644 --- a/components/script/dom/htmlbuttonelement.rs +++ b/components/script/dom/htmlbuttonelement.rs @@ -266,14 +266,14 @@ impl Activatable for HTMLButtonElement { ButtonType::Submit => { // TODO: is document owner fully active? if let Some(owner) = self.form_owner() { - owner.submit(SubmittedFrom::NotFromFormSubmitMethod, + owner.submit(SubmittedFrom::NotFromForm, FormSubmitter::ButtonElement(self.clone())); } } ButtonType::Reset => { // TODO: is document owner fully active? if let Some(owner) = self.form_owner() { - owner.reset(ResetFrom::NotFromFormResetMethod); + owner.reset(ResetFrom::NotFromForm); } } _ => (), |