Skip to content

Commit

Permalink
Auto merge of #18092 - cbrewster:ce_domtokenlist, r=<try>
Browse files Browse the repository at this point in the history
Only run DOMTokenList update steps if token was found

<!-- Please describe your changes on the following line: -->

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [ ] These changes fix #__ (github issue number if applicable).

<!-- Either: -->
- [X] There are tests for these changes OR
- [ ] These changes do not require tests because _____

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- 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="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/18092)
<!-- Reviewable:end -->
  • Loading branch information
bors-servo committed Aug 15, 2017
2 parents 2e60b27 + 0b6fa8f commit 341d0a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
4 changes: 2 additions & 2 deletions components/script/dom/domtokenlist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,9 @@ impl DOMTokenListMethods for DOMTokenList {
} else {
atoms.remove(pos);
}
// Step 5.
self.element.set_atomic_tokenlist_attribute(&self.local_name, atoms);
}
// Step 5.
self.element.set_atomic_tokenlist_attribute(&self.local_name, atoms);
Ok(())
}

Expand Down

This file was deleted.

0 comments on commit 341d0a9

Please sign in to comment.