mirror of
https://github.com/servo/servo.git
synced 2025-06-24 09:04:33 +01:00
Make get_content_boxes return Vec.
This commit is contained in:
parent
20f649da71
commit
02bcf97fd0
3 changed files with 5 additions and 5 deletions
|
@ -288,7 +288,7 @@ pub trait NodeHelpers {
|
|||
fn to_trusted_node_address(&self) -> TrustedNodeAddress;
|
||||
|
||||
fn get_bounding_content_box(&self) -> Rect<Au>;
|
||||
fn get_content_boxes(&self) -> ~[Rect<Au>];
|
||||
fn get_content_boxes(&self) -> Vec<Rect<Au>>;
|
||||
}
|
||||
|
||||
impl NodeHelpers for JS<Node> {
|
||||
|
@ -581,7 +581,7 @@ impl NodeHelpers for JS<Node> {
|
|||
rect
|
||||
}
|
||||
|
||||
fn get_content_boxes(&self) -> ~[Rect<Au>] {
|
||||
fn get_content_boxes(&self) -> Vec<Rect<Au>> {
|
||||
let window = window_from_node(self);
|
||||
let page = window.get().page();
|
||||
let (chan, port) = channel();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue