Children of fixed flows make into parent DL

fixes #1831
This commit is contained in:
Isabelle Carter 2014-03-05 15:13:10 -06:00
parent f7821e40c2
commit 25a3918415

View file

@ -1244,10 +1244,9 @@ impl BlockFlow {
self.build_display_list_float(builder, container_block_size, dirty, index, lists); self.build_display_list_float(builder, container_block_size, dirty, index, lists);
return index; return index;
} else if self.is_absolutely_positioned() { } else if self.is_absolutely_positioned() {
self.build_display_list_abs(builder, container_block_size, return self.build_display_list_abs(builder, container_block_size,
absolute_cb_abs_position, absolute_cb_abs_position,
dirty, index, lists); dirty, index, lists);
return index;
} }
// FIXME: Shouldn't this be the abs_rect _after_ relative positioning? // FIXME: Shouldn't this be the abs_rect _after_ relative positioning?
@ -1395,7 +1394,7 @@ impl BlockFlow {
dirty: &Rect<Au>, dirty: &Rect<Au>,
mut index: uint, mut index: uint,
lists: &RefCell<DisplayListCollection<E>>) lists: &RefCell<DisplayListCollection<E>>)
-> bool { -> uint {
let flow_origin = if self.is_fixed() { let flow_origin = if self.is_fixed() {
// The viewport is initially at (0, 0). // The viewport is initially at (0, 0).
self.base.position.origin self.base.position.origin
@ -1417,7 +1416,7 @@ impl BlockFlow {
self.base.abs_position = flow_origin; self.base.abs_position = flow_origin;
let abs_rect = Rect(flow_origin, self.base.position.size); let abs_rect = Rect(flow_origin, self.base.position.size);
if !abs_rect.intersects(dirty) { if !abs_rect.intersects(dirty) {
return true; return index;
} }
for box_ in self.box_.iter() { for box_ in self.box_.iter() {
@ -1430,7 +1429,7 @@ impl BlockFlow {
child_base.abs_position = flow_origin + child_base.position.origin; child_base.abs_position = flow_origin + child_base.position.origin;
} }
false index
} }
/// Return the top outer edge of the Hypothetical Box for an absolute flow. /// Return the top outer edge of the Hypothetical Box for an absolute flow.