Auto merge of #12368 - MovingtoMars:task_name, r=KiChjang

Implement Runnable trait name method for FireSimpleEventTask

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

Implement Runnable trait name method for FireSimpleEventTask in `components/script/dom/htmlmediaelement.rs`.

---
<!-- 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
- [x] These changes fix #12346

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

<!-- 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/12368)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2016-07-10 00:26:53 -07:00 committed by GitHub
commit 2a60c97f8a

View file

@ -738,6 +738,8 @@ impl FireSimpleEventTask {
}
impl Runnable for FireSimpleEventTask {
fn name(&self) -> &'static str { "FireSimpleEventTask" }
fn handler(self: Box<FireSimpleEventTask>) {
let elem = self.elem.root();
elem.fire_simple_event(self.type_);