diff options
author | Tetsuharu OHZEKI <saneyuki.snyk@gmail.com> | 2014-12-19 02:37:20 +0900 |
---|---|---|
committer | Tetsuharu OHZEKI <saneyuki.snyk@gmail.com> | 2014-12-19 04:52:48 +0900 |
commit | a7bb436177d58798711403f0329b8bf84763f137 (patch) | |
tree | 5f22ccc13b133ca5a7d31eac75013ef68b5434d9 /components/script/page.rs | |
parent | 824788649cd338c044d9396166af5b0f378d6685 (diff) | |
download | servo-a7bb436177d58798711403f0329b8bf84763f137.tar.gz servo-a7bb436177d58798711403f0329b8bf84763f137.zip |
script: Remove glob imports added in #4405
Diffstat (limited to 'components/script/page.rs')
-rw-r--r-- | components/script/page.rs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/components/script/page.rs b/components/script/page.rs index c4c0f741c4c..3c6dcb43f91 100644 --- a/components/script/page.rs +++ b/components/script/page.rs @@ -12,9 +12,9 @@ use dom::element::Element; use dom::node::{Node, NodeHelpers}; use dom::window::Window; use layout_interface::{ - ContentBoxQuery, ContentBoxResponse, ContentBoxesQuery, ContentBoxesResponse, - GetRPCMsg, HitTestResponse, LayoutChan, LayoutRPC, MouseOverResponse, Reflow, - ReflowForScriptQuery, ReflowGoal, ReflowMsg, ReflowQueryType, + ContentBoxResponse, ContentBoxesResponse, + HitTestResponse, LayoutChan, LayoutRPC, MouseOverResponse, Msg, Reflow, + ReflowGoal, ReflowQueryType, TrustedNodeAddress }; use script_traits::{UntrustedNodeAddress, ScriptControlChan}; @@ -138,7 +138,7 @@ impl Page { let layout_rpc: Box<LayoutRPC> = { let (rpc_send, rpc_recv) = channel(); let LayoutChan(ref lchan) = layout_chan; - lchan.send(GetRPCMsg(rpc_send)); + lchan.send(Msg::GetRPC(rpc_send)); rpc_recv.recv() }; Page { @@ -174,14 +174,14 @@ impl Page { } pub fn content_box_query(&self, content_box_request: TrustedNodeAddress) -> Rect<Au> { - self.flush_layout(ReflowForScriptQuery, ContentBoxQuery(content_box_request)); + self.flush_layout(ReflowGoal::ForScriptQuery, ReflowQueryType::ContentBoxQuery(content_box_request)); self.join_layout(); //FIXME: is this necessary, or is layout_rpc's mutex good enough? let ContentBoxResponse(rect) = self.layout_rpc.content_box(); rect } pub fn content_boxes_query(&self, content_boxes_request: TrustedNodeAddress) -> Vec<Rect<Au>> { - self.flush_layout(ReflowForScriptQuery, ContentBoxesQuery(content_boxes_request)); + self.flush_layout(ReflowGoal::ForScriptQuery, ReflowQueryType::ContentBoxesQuery(content_boxes_request)); self.join_layout(); //FIXME: is this necessary, or is layout_rpc's mutex good enough? let ContentBoxesResponse(rects) = self.layout_rpc.content_boxes(); rects @@ -391,7 +391,7 @@ impl Page { }; let LayoutChan(ref chan) = self.layout_chan; - chan.send(ReflowMsg(reflow)); + chan.send(Msg::Reflow(reflow)); debug!("script: layout forked"); |