mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Fix regression on clicking links
This commit is contained in:
parent
c17ede3716
commit
9c5ab1545c
1 changed files with 9 additions and 5 deletions
|
@ -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<DisplayList<RenderBox>> =
|
||||
@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(());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue