From 9c5ab1545c6e17035b4f6720d8287ce1b18173e9 Mon Sep 17 00:00:00 2001 From: Eric Atkinson Date: Wed, 17 Jul 2013 16:31:07 -0700 Subject: [PATCH] Fix regression on clicking links --- src/components/main/layout/layout_task.rs | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/components/main/layout/layout_task.rs b/src/components/main/layout/layout_task.rs index 5d0a78d6b94..595b37dd879 100644 --- a/src/components/main/layout/layout_task.rs +++ b/src/components/main/layout/layout_task.rs @@ -241,8 +241,8 @@ impl LayoutTask { // TODO: Set options on the builder before building. // TODO: Be smarter about what needs painting. - for layout_root.traverse_preorder |flow| { - flow.build_display_list(&builder, &layout_root.position(), display_list); + do layout_root.partially_traverse_preorder |flow| { + flow.build_display_list(&builder, &layout_root.position(), display_list) } let root_size = do layout_root.with_base |base| { @@ -349,9 +349,13 @@ impl LayoutTask { }; let display_list: @Cell> = @Cell::new(DisplayList::new()); - flow.build_display_list(&builder, - &flow.position(), - display_list); + + do flow.partially_traverse_preorder |this_flow| { + this_flow.build_display_list(&builder, + &flow.position(), + display_list) + + } let (x, y) = (Au::from_frac_px(point.x as float), Au::from_frac_px(point.y as float)); let mut resp = Err(());