mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
layout_2020: Add initial support for getComputedStyle
This implementation is more-or-less on par with the one from layout_2013 and in some cases better. There are still some cases where we don't return the correct "resolved value," but this is enough to test animations and transitions.
This commit is contained in:
parent
4d541e8e38
commit
9c7b1ae715
188 changed files with 16312 additions and 15198 deletions
|
@ -1194,8 +1194,14 @@ impl LayoutThread {
|
|||
},
|
||||
&QueryMsg::ResolvedStyleQuery(node, ref pseudo, ref property) => {
|
||||
let node = unsafe { ServoLayoutNode::new(&node) };
|
||||
rw_data.resolved_style_response =
|
||||
process_resolved_style_request(context, node, pseudo, property);
|
||||
let fragment_tree = self.fragment_tree_root.borrow().clone();
|
||||
rw_data.resolved_style_response = process_resolved_style_request(
|
||||
context,
|
||||
node,
|
||||
pseudo,
|
||||
property,
|
||||
fragment_tree,
|
||||
);
|
||||
},
|
||||
&QueryMsg::OffsetParentQuery(node) => {
|
||||
rw_data.offset_parent_response = process_offset_parent_query(node);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue