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/xmldocument.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/xmldocument.rs')
-rw-r--r-- | components/script/dom/xmldocument.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/components/script/dom/xmldocument.rs b/components/script/dom/xmldocument.rs index 87c639742f6..593749c4499 100644 --- a/components/script/dom/xmldocument.rs +++ b/components/script/dom/xmldocument.rs @@ -17,6 +17,7 @@ use dom::node::Node; use dom::window::Window; use js::jsapi::{JSContext, JSObject}; use origin::Origin; +use script_traits::DocumentActivity; use servo_url::ServoUrl; // https://dom.spec.whatwg.org/#xmldocument @@ -33,6 +34,7 @@ impl XMLDocument { is_html_document: IsHTMLDocument, content_type: Option<DOMString>, last_modified: Option<String>, + activity: DocumentActivity, source: DocumentSource, doc_loader: DocumentLoader) -> XMLDocument { XMLDocument { @@ -43,6 +45,7 @@ impl XMLDocument { is_html_document, content_type, last_modified, + activity, source, doc_loader, None, @@ -57,6 +60,7 @@ impl XMLDocument { doctype: IsHTMLDocument, content_type: Option<DOMString>, last_modified: Option<String>, + activity: DocumentActivity, source: DocumentSource, doc_loader: DocumentLoader) -> Root<XMLDocument> { @@ -68,6 +72,7 @@ impl XMLDocument { doctype, content_type, last_modified, + activity, source, doc_loader), window, |