mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
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:
commit
2d9d47315f
1 changed files with 2 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue