mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Upgrade rust.
This commit is contained in:
parent
7ece5f92db
commit
31eee791dd
102 changed files with 724 additions and 839 deletions
|
@ -569,7 +569,7 @@ impl Element {
|
|||
let doc = self.node.owner_doc();
|
||||
let win = &doc.get().window;
|
||||
let node: JS<Node> = NodeCast::from(abstract_self);
|
||||
let (port, chan) = Chan::new();
|
||||
let (chan, port) = channel();
|
||||
let addr = node.to_trusted_node_address();
|
||||
let ContentBoxesResponse(rects) = win.get().page().query_layout(ContentBoxesQuery(addr, chan), port);
|
||||
let rects = rects.map(|r| {
|
||||
|
@ -589,7 +589,7 @@ impl Element {
|
|||
let doc = self.node.owner_doc();
|
||||
let win = &doc.get().window;
|
||||
let node: JS<Node> = NodeCast::from(abstract_self);
|
||||
let (port, chan) = Chan::new();
|
||||
let (chan, port) = channel();
|
||||
let addr = node.to_trusted_node_address();
|
||||
let ContentBoxResponse(rect) = win.get().page().query_layout(ContentBoxQuery(addr, chan), port);
|
||||
ClientRect::new(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue