mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Use Vec in GetClientRects.
This commit is contained in:
parent
c4faad7116
commit
479c927a39
1 changed files with 1 additions and 1 deletions
|
@ -641,7 +641,7 @@ impl<'a> ElementMethods for JSRef<'a, Element> {
|
||||||
let win = window_from_node(self).root();
|
let win = window_from_node(self).root();
|
||||||
let node: &JSRef<Node> = NodeCast::from_ref(self);
|
let node: &JSRef<Node> = NodeCast::from_ref(self);
|
||||||
let rects = node.get_content_boxes();
|
let rects = node.get_content_boxes();
|
||||||
let rects: ~[Root<ClientRect>] = rects.iter().map(|r| {
|
let rects: Vec<Root<ClientRect>> = rects.iter().map(|r| {
|
||||||
ClientRect::new(
|
ClientRect::new(
|
||||||
&*win,
|
&*win,
|
||||||
r.origin.y,
|
r.origin.y,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue