layout: Remove the now-useless dirty field from the layout context.

At this point the only thing it does is to try to avoid adding display
items that are outside the root scrollable area, which is both wrong
(since it's incompatible with having scrollable areas outside the root)
and is useless (because we have displayports now).
This commit is contained in:
Patrick Walton 2015-08-07 18:06:16 -07:00
parent c079c1cf6d
commit 11822f3eb1
3 changed files with 1 additions and 19 deletions

View file

@ -900,11 +900,9 @@ impl FragmentDisplayListBuilding for Fragment {
relative_containing_block_mode,
CoordinateSystem::Own);
debug!("Fragment::build_display_list at rel={:?}, abs={:?}, dirty={:?}, flow origin={:?}: \
{:?}",
debug!("Fragment::build_display_list at rel={:?}, abs={:?}, flow origin={:?}: {:?}",
self.border_box,
stacking_relative_border_box,
layout_context.shared.dirty,
stacking_relative_flow_origin,
self);
@ -913,11 +911,6 @@ impl FragmentDisplayListBuilding for Fragment {
return
}
if !stacking_relative_border_box.intersects(&layout_context.shared.dirty) {
debug!("Fragment::build_display_list: Did not intersect...");
return
}
// Calculate the clip rect. If there's nothing to render at all, don't even construct
// display list items.
let clip = self.calculate_style_specified_clip(clip, &stacking_relative_border_box);