aboutsummaryrefslogtreecommitdiffstats
path: root/components/script
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2016-07-10 00:26:53 -0700
committerGitHub <noreply@github.com>2016-07-10 00:26:53 -0700
commit2a60c97f8a1dde615e78043cb3460b110e7886fb (patch)
tree991aeb52dce7a9208f50944002e5d4214578c9c3 /components/script
parent8f13bb24f12f21993304713226b39037c5633737 (diff)
parent673db44402f09e99ce134a80ce19189b8c6f281e (diff)
downloadservo-2a60c97f8a1dde615e78043cb3460b110e7886fb.tar.gz
servo-2a60c97f8a1dde615e78043cb3460b110e7886fb.zip
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 -->
Diffstat (limited to 'components/script')
-rw-r--r--components/script/dom/htmlmediaelement.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/components/script/dom/htmlmediaelement.rs b/components/script/dom/htmlmediaelement.rs
index 8a0b9f4a709..b38f796e57c 100644
--- a/components/script/dom/htmlmediaelement.rs
+++ b/components/script/dom/htmlmediaelement.rs
@@ -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_);