diff options
author | Ms2ger <ms2ger@gmail.com> | 2014-02-22 14:11:31 +0100 |
---|---|---|
committer | Ms2ger <ms2ger@gmail.com> | 2014-02-24 22:23:11 +0100 |
commit | e2617a6396e6f9fd0aac43c418ad786957c475e6 (patch) | |
tree | 9c16967afe2999e491265b0a9e80e67d5f475689 /src/components/script/script_task.rs | |
parent | 7190feb5e3d62b37d59229c26966d0f864ddf479 (diff) | |
download | servo-e2617a6396e6f9fd0aac43c418ad786957c475e6.tar.gz servo-e2617a6396e6f9fd0aac43c418ad786957c475e6.zip |
Remove HTMLDocument.
Diffstat (limited to 'src/components/script/script_task.rs')
-rw-r--r-- | src/components/script/script_task.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/components/script/script_task.rs b/src/components/script/script_task.rs index d0c53384231..0f17d4afce0 100644 --- a/src/components/script/script_task.rs +++ b/src/components/script/script_task.rs @@ -6,15 +6,14 @@ //! and layout tasks. use dom::bindings::codegen::RegisterBindings; -use dom::bindings::codegen::InheritTypes::{EventTargetCast, NodeCast, DocumentCast, ElementCast}; +use dom::bindings::codegen::InheritTypes::{EventTargetCast, NodeCast, ElementCast}; use dom::bindings::js::JS; use dom::bindings::utils::{Reflectable, GlobalStaticData, with_gc_enabled}; -use dom::document::Document; +use dom::document::{Document, HTML}; use dom::element::Element; use dom::event::{Event_, ResizeEvent, ReflowEvent, ClickEvent, MouseDownEvent, MouseMoveEvent, MouseUpEvent}; use dom::event::Event; use dom::eventtarget::EventTarget; -use dom::htmldocument::HTMLDocument; use dom::node::{Node, NodeHelpers}; use dom::window::{TimerData, TimerHandle, Window}; use html::hubbub_html_parser::HtmlParserResult; @@ -718,7 +717,7 @@ impl ScriptTask { // Parse HTML. // // Note: We can parse the next document in parallel with any previous documents. - let mut document = DocumentCast::from(&HTMLDocument::new(&window, Some(url.clone()))); + let mut document = Document::new(&window, Some(url.clone()), HTML, None); let html_parsing_result = hubbub_html_parser::parse_html(cx.ptr, &mut document, url.clone(), |