aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout_2020
diff options
context:
space:
mode:
authorbors-servo <infra@servo.org>2023-05-11 21:04:45 +0200
committerGitHub <noreply@github.com>2023-05-11 21:04:45 +0200
commit9bec0d0f8e92e90b5d8c99ba691a9d9a6bb41bcc (patch)
treefbfaa73aa4702fdb2a32fe6838388189ab1d41db /components/layout_2020
parentfeaa66b5972c3e31d77c2acce7d626c455320535 (diff)
parentab2ba273e342c6f1a0c1f29cca3f551fd8926e94 (diff)
downloadservo-9bec0d0f8e92e90b5d8c99ba691a9d9a6bb41bcc.tar.gz
servo-9bec0d0f8e92e90b5d8c99ba691a9d9a6bb41bcc.zip
Auto merge of #29728 - Loirooriol:sync-fontprovider-D157589, r=mrobinson
Simplify our setup for font metric queries from style This is a backport of https://phabricator.services.mozilla.com/D157589, by Emilio Cobos Álvarez, plus some additions so that Servo compiles, and some parts from https://phabricator.services.mozilla.com/D144455. Should have no change in behavior. <!-- Please describe your changes on the following line: --> --- <!-- 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 - [ ] These changes fix #___ (GitHub issue number if applicable) <!-- Either: --> - [ ] There are tests for these changes OR - [X] These changes do not require tests because there should be no change in behavior <!-- 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_2020')
-rw-r--r--components/layout_2020/query.rs2
-rw-r--r--components/layout_2020/traversal.rs1
2 files changed, 1 insertions, 2 deletions
diff --git a/components/layout_2020/query.rs b/components/layout_2020/query.rs
index 74420ae2bb5..3fd02a1597c 100644
--- a/components/layout_2020/query.rs
+++ b/components/layout_2020/query.rs
@@ -356,7 +356,7 @@ pub fn process_resolved_style_request_for_unstyled_node<'dom>(
return String::new();
}
- let mut tlc = ThreadLocalStyleContext::new(&context.style_context);
+ let mut tlc = ThreadLocalStyleContext::new();
let mut context = StyleContext {
shared: &context.style_context,
thread_local: &mut tlc,
diff --git a/components/layout_2020/traversal.rs b/components/layout_2020/traversal.rs
index 1f73a7816f1..7ddb0e85ed4 100644
--- a/components/layout_2020/traversal.rs
+++ b/components/layout_2020/traversal.rs
@@ -34,7 +34,6 @@ impl<'a, 'dom, E> DomTraversal<E> for RecalcStyle<'a>
where
E: TElement,
E::ConcreteNode: LayoutNode<'dom>,
- E::FontMetricsProvider: Send,
{
fn process_preorder<F>(
&self,