diff options
author | bors-servo <servo-ops@mozilla.com> | 2020-05-11 15:57:25 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-11 15:57:25 -0400 |
commit | aa9f16ce45f6eb22ffd5bc6a10802ded4cc2319b (patch) | |
tree | 5f791036b4b050d2c27fb9c6be2909dec71f59aa /components/layout_thread_2020 | |
parent | 41367b01bbb0e43a1d7f57f63cbd3099610f2544 (diff) | |
parent | 9c7b1ae715292c3bc10a2f73daebcd792472f649 (diff) | |
download | servo-aa9f16ce45f6eb22ffd5bc6a10802ded4cc2319b.tar.gz servo-aa9f16ce45f6eb22ffd5bc6a10802ded4cc2319b.zip |
Auto merge of #26477 - mrobinson:layout-2020-get-computed-value, r=jdm
Add support for getComputedStyle() to layout_2020
These changes add support for `getComputedStyle()` to layout_2020.
---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] There are tests for these changes
<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->
<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
Diffstat (limited to 'components/layout_thread_2020')
-rw-r--r-- | components/layout_thread_2020/lib.rs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/components/layout_thread_2020/lib.rs b/components/layout_thread_2020/lib.rs index 7639c2dc70c..42a5a4d3e00 100644 --- a/components/layout_thread_2020/lib.rs +++ b/components/layout_thread_2020/lib.rs @@ -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); |