mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Fix scrolling from script in Layout 2020
Script will only scroll if it detects that an element has a scrolling box, so this change adds an implementation of the scroll area query to Layout 2020. This allows some scrolling tests to start passing. This change also updates all expected results in css-backgrounds and cssom-view.
This commit is contained in:
parent
eca0acf459
commit
404ee8b984
31 changed files with 72 additions and 238 deletions
|
@ -1184,7 +1184,8 @@ impl LayoutThread {
|
|||
process_node_geometry_request(node, self.fragment_tree.borrow().clone());
|
||||
},
|
||||
&QueryMsg::NodeScrollGeometryQuery(node) => {
|
||||
rw_data.scroll_area_response = process_node_scroll_area_request(node);
|
||||
rw_data.scroll_area_response =
|
||||
process_node_scroll_area_request(node, self.fragment_tree.borrow().clone());
|
||||
},
|
||||
&QueryMsg::NodeScrollIdQuery(node) => {
|
||||
let node = unsafe { ServoLayoutNode::new(&node) };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue