mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
removed old TODO
This commit is contained in:
parent
a58b01bc86
commit
93368a2bf3
1 changed files with 0 additions and 2 deletions
|
@ -386,8 +386,6 @@ impl Element {
|
||||||
assert!(node.is_element());
|
assert!(node.is_element());
|
||||||
let page = win.page;
|
let page = win.page;
|
||||||
let (port, chan) = comm::stream();
|
let (port, chan) = comm::stream();
|
||||||
// TODO(tkuehn): currently just queries top-level page layout. Needs to query
|
|
||||||
// subframe layout if this element is in a subframe. Probably need an ID field.
|
|
||||||
match unsafe {(*page).query_layout(ContentBoxesQuery(node, chan), port)} {
|
match unsafe {(*page).query_layout(ContentBoxesQuery(node, chan), port)} {
|
||||||
Ok(ContentBoxesResponse(rects)) => {
|
Ok(ContentBoxesResponse(rects)) => {
|
||||||
let cx = unsafe {(*page).js_info.get_ref().js_compartment.cx.ptr};
|
let cx = unsafe {(*page).js_info.get_ref().js_compartment.cx.ptr};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue