mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Implement Runnable trait name method for PauseIfNotInDocumentTask
This commit is contained in:
parent
513811f6b4
commit
fcabcccd9a
1 changed files with 2 additions and 0 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue