mirror of
https://github.com/servo/servo.git
synced 2025-06-10 09:33:13 +00:00
layout: Propagate overflow values from <body>
to root element (#31618)
The specification gives instructions for how these values should be propagated. The other big changs here is that they aren't applied to the `<body>`. Co-authored-by: Oriol Brufau <obrufau@igalia.com>
This commit is contained in:
parent
03d64d0675
commit
716f4a006d
17 changed files with 82 additions and 27 deletions
|
@ -252,6 +252,7 @@ impl CompositorDisplayListInfo {
|
|||
content_size: LayoutSize,
|
||||
pipeline_id: PipelineId,
|
||||
epoch: Epoch,
|
||||
root_scroll_sensitivity: ScrollSensitivity,
|
||||
) -> Self {
|
||||
let mut scroll_tree = ScrollTree::default();
|
||||
let root_reference_frame_id = scroll_tree.add_scroll_tree_node(
|
||||
|
@ -265,7 +266,7 @@ impl CompositorDisplayListInfo {
|
|||
Some(ScrollableNodeInfo {
|
||||
external_id: ExternalScrollId(0, pipeline_id),
|
||||
scrollable_size: content_size - viewport_size,
|
||||
scroll_sensitivity: ScrollSensitivity::ScriptAndInputEvents,
|
||||
scroll_sensitivity: root_scroll_sensitivity,
|
||||
offset: LayoutVector2D::zero(),
|
||||
}),
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue