aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/document.rs
diff options
context:
space:
mode:
authorbors-servo <metajack+bors@gmail.com>2015-09-19 13:34:51 -0600
committerbors-servo <metajack+bors@gmail.com>2015-09-19 13:34:51 -0600
commita0d3c9223f09757124b1520c4f17e94fa8bbe249 (patch)
tree1dd3e40e5a554466dfb4575758ad15967927d44d /components/script/dom/document.rs
parent7f2d81933a6158926ff6d03acbc05f191cd5adb3 (diff)
parentde3547e401a0ace8b6bfb4b488ed0be9d5b3d79c (diff)
downloadservo-a0d3c9223f09757124b1520c4f17e94fa8bbe249.tar.gz
servo-a0d3c9223f09757124b1520c4f17e94fa8bbe249.zip
Auto merge of #7662 - nerith:import, r=frewsxcv
Check for multiple import blocks separated by whitespace Fixes #7381. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7662) <!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom/document.rs')
-rw-r--r--components/script/dom/document.rs21
1 files changed, 9 insertions, 12 deletions
diff --git a/components/script/dom/document.rs b/components/script/dom/document.rs
index de4f6a8423e..fb67d8f84fd 100644
--- a/components/script/dom/document.rs
+++ b/components/script/dom/document.rs
@@ -66,8 +66,12 @@ use dom::text::Text;
use dom::treewalker::TreeWalker;
use dom::uievent::UIEvent;
use dom::window::{Window, ReflowReason};
-
+use euclid::point::Point2D;
+use html5ever::tree_builder::{QuirksMode, NoQuirks, LimitedQuirks, Quirks};
+use ipc_channel::ipc::{self, IpcSender};
+use js::jsapi::{JSContext, JSObject, JSRuntime};
use layout_interface::{HitTestResponse, MouseOverResponse};
+use layout_interface::{LayoutChan, Msg};
use layout_interface::{ReflowGoal, ReflowQueryType};
use msg::compositor_msg::ScriptToCompositorMsg;
use msg::constellation_msg::AnimationState;
@@ -77,19 +81,9 @@ use msg::constellation_msg::{SUPER, ALT, SHIFT, CONTROL};
use net_traits::ControlMsg::{SetCookiesForUrl, GetCookiesForUrl};
use net_traits::CookieSource::NonHTTP;
use net_traits::{Metadata, PendingAsyncLoad, AsyncResponseTarget};
+use num::ToPrimitive;
use script_task::Runnable;
use script_traits::{MouseButton, UntrustedNodeAddress};
-use util::str::{DOMString, split_html_space_chars};
-
-use euclid::point::Point2D;
-use html5ever::tree_builder::{QuirksMode, NoQuirks, LimitedQuirks, Quirks};
-use ipc_channel::ipc::{self, IpcSender};
-use js::jsapi::{JSContext, JSObject, JSRuntime};
-use layout_interface::{LayoutChan, Msg};
-use string_cache::{Atom, QualName};
-use url::Url;
-
-use num::ToPrimitive;
use std::ascii::AsciiExt;
use std::borrow::ToOwned;
use std::boxed::FnBox;
@@ -101,7 +95,10 @@ use std::iter::FromIterator;
use std::ptr;
use std::rc::Rc;
use std::sync::mpsc::channel;
+use string_cache::{Atom, QualName};
use time;
+use url::Url;
+use util::str::{DOMString, split_html_space_chars};
#[derive(JSTraceable, PartialEq, HeapSizeOf)]
pub enum IsHTMLDocument {