mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
layout: Allow the overflow area of the <body>
to be scrolled.
Fixes scrolling on Twitter.
This commit is contained in:
parent
f190ba360e
commit
99587cf105
4 changed files with 46 additions and 1 deletions
|
@ -1031,7 +1031,11 @@ impl LayoutTask {
|
|||
flow_ref::deref_mut(layout_root));
|
||||
let root_size = {
|
||||
let root_flow = flow::base(&**layout_root);
|
||||
root_flow.position.size.to_physical(root_flow.writing_mode)
|
||||
if rw_data.stylist.constrain_viewport().is_some() {
|
||||
root_flow.position.size.to_physical(root_flow.writing_mode)
|
||||
} else {
|
||||
root_flow.overflow.size
|
||||
}
|
||||
};
|
||||
let mut display_list = box DisplayList::new();
|
||||
flow::mut_base(flow_ref::deref_mut(layout_root))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue