layout: Make inner scroll wrappers acquire the overflow region of their

contents.

Makes Twitter pages show up when scrolling, if WebRender is not in use.
WebRender does not yet support overflow:scroll.
This commit is contained in:
Patrick Walton 2016-04-08 18:13:45 -07:00
parent 0a1efe4578
commit 6a6b688fa8
2 changed files with 40 additions and 1 deletions

View file

@ -1308,7 +1308,9 @@ impl FragmentDisplayListBuilding for Fragment {
}
};
let overflow = match mode {
StackingContextCreationMode::InnerScrollWrapper |
StackingContextCreationMode::InnerScrollWrapper => {
Rect::new(Point2D::zero(), base_flow.overflow.paint.size)
}
StackingContextCreationMode::OuterScrollWrapper => {
Rect::new(Point2D::zero(), border_box.size)
}