mirror of
https://github.com/servo/servo.git
synced 2025-06-25 17:44:33 +01:00
layout: Address review feedback.
This commit is contained in:
parent
30b7f5d0ad
commit
c49f23ffb2
25 changed files with 296 additions and 303 deletions
|
@ -934,9 +934,10 @@ impl ScriptTask {
|
|||
page.query_layout(ContentBoxQuery(node.to_trusted_node_address(), chan), port);
|
||||
let point = Point2D(to_frac_px(rect.origin.x).to_f32().unwrap(),
|
||||
to_frac_px(rect.origin.y).to_f32().unwrap());
|
||||
// FIXME(pcwalton): This is pretty bogus when multiple layers are involved. Really
|
||||
// what needs to happen is that this needs to go through layout to ask which layer
|
||||
// the element belongs to, and have it send the scroll message to the compositor.
|
||||
// FIXME(#2003, pcwalton): This is pretty bogus when multiple layers are involved.
|
||||
// Really what needs to happen is that this needs to go through layout to ask which
|
||||
// layer the element belongs to, and have it send the scroll message to the
|
||||
// compositor.
|
||||
self.compositor.scroll_fragment_point(pipeline_id, LayerId::null(), point);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue