mirror of
https://github.com/servo/servo.git
synced 2025-07-14 10:53:42 +01:00
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:
commit
2a60c97f8a
1 changed files with 2 additions and 0 deletions
|
@ -738,6 +738,8 @@ impl FireSimpleEventTask {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Runnable for FireSimpleEventTask {
|
impl Runnable for FireSimpleEventTask {
|
||||||
|
fn name(&self) -> &'static str { "FireSimpleEventTask" }
|
||||||
|
|
||||||
fn handler(self: Box<FireSimpleEventTask>) {
|
fn handler(self: Box<FireSimpleEventTask>) {
|
||||||
let elem = self.elem.root();
|
let elem = self.elem.root();
|
||||||
elem.fire_simple_event(self.type_);
|
elem.fire_simple_event(self.type_);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue