Delay initiating layout operations for as long as possible.

This commit is contained in:
Josh Matthews 2014-09-15 23:16:45 -04:00
parent 8a02fe0fc6
commit 2bd93ed070
4 changed files with 46 additions and 13 deletions

View file

@ -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
}