mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Delay initiating layout operations for as long as possible.
This commit is contained in:
parent
8a02fe0fc6
commit
2bd93ed070
4 changed files with 46 additions and 13 deletions
|
@ -588,7 +588,7 @@ impl<'m, 'n> NodeHelpers<'m, 'n> for JSRef<'n, Node> {
|
|||
let page = window.deref().page();
|
||||
let addr = self.to_trusted_node_address();
|
||||
|
||||
let ContentBoxResponse(rect) = page.layout_rpc.content_box(addr);
|
||||
let ContentBoxResponse(rect) = page.layout().content_box(addr);
|
||||
rect
|
||||
}
|
||||
|
||||
|
@ -596,7 +596,7 @@ impl<'m, 'n> NodeHelpers<'m, 'n> for JSRef<'n, Node> {
|
|||
let window = window_from_node(self).root();
|
||||
let page = window.deref().page();
|
||||
let addr = self.to_trusted_node_address();
|
||||
let ContentBoxesResponse(rects) = page.layout_rpc.content_boxes(addr);
|
||||
let ContentBoxesResponse(rects) = page.layout().content_boxes(addr);
|
||||
rects
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue