diff options
author | Alan Jeffrey <ajeffrey@mozilla.com> | 2017-01-10 14:35:25 -0600 |
---|---|---|
committer | Alan Jeffrey <ajeffrey@mozilla.com> | 2017-01-27 12:39:43 -0600 |
commit | a43c842099019c9193b6cddfa5219ddbc8b93eee (patch) | |
tree | be613e3f373897aba1a1033f50d5cd0702451fa7 /components/script/dom/domparser.rs | |
parent | 556a46f537009bfc0c5cffadcd1a640c2b0c3029 (diff) | |
download | servo-a43c842099019c9193b6cddfa5219ddbc8b93eee.tar.gz servo-a43c842099019c9193b6cddfa5219ddbc8b93eee.zip |
The constellation notifies the script thread about documents becoming inactive, active and fully active.
Diffstat (limited to 'components/script/dom/domparser.rs')
-rw-r--r-- | components/script/dom/domparser.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/components/script/dom/domparser.rs b/components/script/dom/domparser.rs index c14bec8b594..54132ef94a9 100644 --- a/components/script/dom/domparser.rs +++ b/components/script/dom/domparser.rs @@ -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, |