auto merge of #5261 : pcwalton/servo/too-many-reflows, r=pcwalton,metajack

These help Facebook Timeline a lot.

r? @metajack
This commit is contained in:
bors-servo 2015-03-20 11:51:47 -06:00
commit aa6ed369b8
3 changed files with 17 additions and 6 deletions

View file

@ -1212,7 +1212,11 @@ impl ScriptTask {
fn handle_reflow_event(&self, pipeline_id: PipelineId) {
debug!("script got reflow event");
let page = get_page(&self.root_page(), pipeline_id);
self.force_reflow(&*page, ReflowReason::ReceivedReflowEvent);
let document = page.document().root();
let window = window_from_node(document.r()).root();
window.r().reflow(ReflowGoal::ForDisplay,
ReflowQueryType::NoQuery,
ReflowReason::ReceivedReflowEvent);
}
/// Initiate a non-blocking fetch for a specified resource. Stores the InProgressLoad