Auto merge of #12340 - Scorpil:document_progress_handler_runnable_name, r=KiChjang

Add name method for Runnable trait in DocumentProgressHandler

<!-- 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
- [X] These changes fix #12335

<!-- Either: -->
- [ ] There are tests for these changes OR
- [X] These changes do not require tests because it's stated so in issue description.

<!-- 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/12340)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2016-07-08 02:23:16 -07:00 committed by GitHub
commit 2d9d47315f

View file

@ -2869,6 +2869,8 @@ impl DocumentProgressHandler {
}
impl Runnable for DocumentProgressHandler {
fn name(&self) -> &'static str { "DocumentProgressHandler" }
fn handler(self: Box<DocumentProgressHandler>) {
let document = self.addr.root();
let window = document.window();