mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
The constellation notifies the script thread about documents becoming inactive, active and fully active.
This commit is contained in:
parent
556a46f537
commit
a43c842099
14 changed files with 162 additions and 98 deletions
|
@ -19,6 +19,7 @@ use dom::document::{Document, IsHTMLDocument};
|
|||
use dom::document::DocumentSource;
|
||||
use dom::servoparser::ServoParser;
|
||||
use dom::window::Window;
|
||||
use script_traits::DocumentActivity;
|
||||
|
||||
#[dom_struct]
|
||||
pub struct DOMParser {
|
||||
|
@ -65,6 +66,7 @@ impl DOMParserMethods for DOMParser {
|
|||
IsHTMLDocument::HTMLDocument,
|
||||
Some(content_type),
|
||||
None,
|
||||
DocumentActivity::Inactive,
|
||||
DocumentSource::FromParser,
|
||||
loader,
|
||||
None,
|
||||
|
@ -82,6 +84,7 @@ impl DOMParserMethods for DOMParser {
|
|||
IsHTMLDocument::NonHTMLDocument,
|
||||
Some(content_type),
|
||||
None,
|
||||
DocumentActivity::Inactive,
|
||||
DocumentSource::NotFromParser,
|
||||
loader,
|
||||
None,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue