Skip to content

Commit

Permalink
Auto merge of #12495 - ice9js:implement-runnable-for-PauseIfNotInDocu…
Browse files Browse the repository at this point in the history
…mentTask, r=KiChjang

Implement Runnable trait name method for PauseIfNotInDocumentTask

Implements #12350.

---
<!-- 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 #12350.

<!-- Either: -->
- [X] These changes do not require tests

<!-- 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/12495)
<!-- Reviewable:end -->
  • Loading branch information
bors-servo committed Jul 18, 2016
2 parents d28f2b8 + fcabccc commit 589c6ee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/script/dom/htmlmediaelement.rs
Expand Up @@ -801,6 +801,8 @@ impl PauseIfNotInDocumentTask {
}

impl Runnable for PauseIfNotInDocumentTask {
fn name(&self) -> &'static str { "PauseIfNotInDocumentTask" }

fn handler(self: Box<PauseIfNotInDocumentTask>) {
let elem = self.elem.root();
if !elem.upcast::<Node>().is_in_doc() {
Expand Down

0 comments on commit 589c6ee

Please sign in to comment.